Skip to content

Commit

Permalink
Update checkMinor.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanat05 authored Jun 3, 2022
1 parent a5eadde commit d7d09f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkMinor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function minor(text: string|any): boolean {
if(!text) throw new Error('Korean: 확인할 텍스트를 입력해 주세요');
if(!text) throw new Error('Korcen: 확인할 텍스트를 입력해 주세요');
if(typeof text !== 'string') throw new Error('Korean: String 타입만 입력 가능합니다');
const newtext = text.toLowerCase()
text = newtext.replace(/[^-]/gi, '')
Expand Down

0 comments on commit d7d09f2

Please sign in to comment.