wupengfei
11 小时以前 7cf04da7eaba7cad9c3b5e5f674d2e038ebcd305
packages/utils/common.ts
@@ -140,3 +140,11 @@
  if (!phone) return '';
  return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
};
export function filterCN(str: string) {
  return str.replace(/[\u4e00-\u9fa5]/gi, '');
}
export function filterNotCN(str: string) {
  return str.replace(/[^\u4e00-\u9fa5]/gi, '');
}