element-plus/packages/utils/i18n.ts

3 lines
96 B
TypeScript
Raw Normal View History

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