From 21f0c67e85bfd0e24a944fa52c65331c9599e1ad Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期二, 16 九月 2025 16:48:40 +0800
Subject: [PATCH] feat: 接口对接

---
 packages/utils/common.ts |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/packages/utils/common.ts b/packages/utils/common.ts
index 13bbb46..a420b99 100644
--- a/packages/utils/common.ts
+++ b/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, '');
+}

--
Gitblit v1.9.1