fix(components): [input] Write Chinese in parenthesis, letters repeat (#12154)

* fix(components): [input] Write chinese in parenthesis, letters repeat

closed #11723

* fix: remove redundant |
This commit is contained in:
Hefty 2023-04-15 10:55:56 +08:00 committed by GitHub
parent 20486bf545
commit c92652d241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,2 +1,2 @@
export const isKorean = (text: string) =>
/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(text)
/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(text)