【优化】中文判断

pull/470/MERGE
cherishsince 2024-07-04 11:10:59 +08:00
parent 8f6e6fdb54
commit d974124918
1 changed files with 1 additions and 1 deletions

View File

@ -9,5 +9,5 @@
/** 判断字符串是否包含中文 */
export const hasChinese = async (str) => {
return /[\u4E00-\u9FA5]+/g.test(str)
return /[\u4e00-\u9fa5]/.test(str)
}