From d974124918bcb82c5fdb6964fb92e0f784bc8630 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Thu, 4 Jul 2024 11:10:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/utils/common-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/ai/utils/common-utils.ts b/src/views/ai/utils/common-utils.ts index c053a87d..fc4f8e6c 100644 --- a/src/views/ai/utils/common-utils.ts +++ b/src/views/ai/utils/common-utils.ts @@ -9,5 +9,5 @@ /** 判断字符串是否包含中文 */ export const hasChinese = async (str) => { - return /[\u4E00-\u9FA5]+/g.test(str) + return /[\u4e00-\u9fa5]/.test(str) }