This commit is contained in:
2025-07-22 16:43:10 +08:00
parent a90dce06f3
commit 52bae0735f
36 changed files with 10224 additions and 1658 deletions
+11
View File
@@ -0,0 +1,11 @@
export default class Tools {
private static chineseReg: RegExp;
public static IsChinese(s: string): boolean {
if (!this.chineseReg) {
this.chineseReg = new RegExp("^[\u4E00-\u9FFFF]+$");
}
if (!this.chineseReg.test(s)) {
return false;
} else return true;
}
}