element-plus/packages/utils/isDef.ts

5 lines
131 B
TypeScript

export function isKorean(text: string): boolean {
const reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi
return reg.test(text)
}