element-plus/packages/utils-v2/i18n.ts
2022-02-09 16:59:08 +08:00

3 lines
96 B
TypeScript

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