14 lines
362 B
TypeScript
Raw Normal View History

2024-07-04 09:51:39 +08:00
/**
* Created by
*
* AI
*
* src/utils/common-utils.ts
* AI /views/ai/utils/common-utils.ts
*/
/** 判断字符串是否包含中文 */
export const hasChinese = async (str) => {
2024-07-04 11:10:59 +08:00
return /[\u4e00-\u9fa5]/.test(str)
2024-07-04 09:51:39 +08:00
}