element-plus/packages/utils/i18n.ts
Hefty c92652d241
fix(components): [input] Write Chinese in parenthesis, letters repeat (#12154)
* fix(components): [input] Write chinese in parenthesis, letters repeat

closed #11723

* fix: remove redundant |
2023-04-15 10:55:56 +08:00

3 lines
91 B
TypeScript

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