Skip to content

Commit

Permalink
feat: add eslint disable comment (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyuhho committed Aug 7, 2024
1 parent d1a8a97 commit fe0e564
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/utils/isIncludeSpecialLetter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//특수문자 포함 여부
export const isIncludeSpecialLetter = (str: string) => {
var specialCharacterRegex = /[\{\}\[\]\/?.,;:|\)*~`!^\-_+<>@\#$%&\\\=\(\'\"]/g;
var specialCharacterRegex =
/[\{\}\[\]\/?.,;:|\)*~`!^\-_+<>@\#$%&\\\=\(\'\"]/g; //eslint-disable-line

if (specialCharacterRegex.test(str)) {
return true;
} else {
Expand All @@ -9,7 +11,8 @@ export const isIncludeSpecialLetter = (str: string) => {
};

export const isIncludeSpecialLetterOneLiner = (str: string) => {
var specialCharacterRegex = /[\{\}\[\]\/;|\)*~`^\-_+<>@\#$%&\\\=\(\'\"]/g;
var specialCharacterRegex = /[\{\}\[\]\/;|\)*~`^\-_+<>@\#$%&\\\=\(\'\"]/g; //eslint-disable-line

if (specialCharacterRegex.test(str)) {
return true;
} else {
Expand Down

0 comments on commit fe0e564

Please sign in to comment.