feat 236,284 全半角のチェック コミット

This commit is contained in:
kanarutsuda
2024-06-13 15:12:30 +09:00
parent 493b9ca0e9
commit 80694ee49c
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ export class FullWidthAction implements IAction{
//全て全角の文字列の場合はtrue、そうでない場合はfalse
containsFullWidthChars(text: string): boolean {
//半角英数字カナ記号を除外
// 半角英数字カナ記号を除外
const checkRegex="^[^\x01-\x7E\uFF61-\uFF9F]+$";
//正規表現オブジェクト生成

View File

@@ -75,7 +75,7 @@ export class HalfWidthAction implements IAction{
//全て全角の文字列の場合はtrue、そうでない場合はfalse
containsHalfWidthChars(text: string): boolean {
const checkRegex="^[\x01-\x7E\uFF61-\uFF9F]+$";
const checkRegex = "^[\x01-\x7E\uFF61-\uFF9F]+$";
//正規表現オブジェクト生成
const halfWidthRegex = new RegExp(checkRegex);