From d099c706e5cf59085df99bbe541283aa0c58803f Mon Sep 17 00:00:00 2001 From: xiaokang Date: Tue, 9 Jul 2024 10:20:24 +0800 Subject: [PATCH] fixes oceanbase/odc#2922 --- src/component/MonacoEditor/plugins/ob-language/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/MonacoEditor/plugins/ob-language/service.ts b/src/component/MonacoEditor/plugins/ob-language/service.ts index c46b8d20c..1bb00bd4c 100644 --- a/src/component/MonacoEditor/plugins/ob-language/service.ts +++ b/src/component/MonacoEditor/plugins/ob-language/service.ts @@ -72,7 +72,7 @@ export function getModelService( if (!dbName) { dbName = sessionFunc()?.database?.dbName; } - if (/[\w]+/.test(realTableName) && realTableName?.length < 500) { + if (/[\u4e00-\u9fa5\w]+/.test(realTableName) && realTableName?.length < 500) { const db = sessionFunc()?.allIdentities[dbName] || sessionFunc()?.allIdentities[dbName?.toUpperCase()];