From 236b00dce14ed22c4636b1e5bc1dff985a96495a Mon Sep 17 00:00:00 2001 From: MrErHu Date: Wed, 2 May 2018 20:23:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86bi.code=5Feditor=E4=B8=AD?= =?UTF-8?q?=E5=AD=98=E5=9C=A8R=E8=AF=AD=E8=A8=80$=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/editor/editor.code.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/single/editor/editor.code.js b/src/base/single/editor/editor.code.js index 4242fd1ed..c7b9246d9 100644 --- a/src/base/single/editor/editor.code.js +++ b/src/base/single/editor/editor.code.js @@ -159,7 +159,7 @@ BI.CodeEditor = BI.inherit(BI.Single, { }, _analyzeContent: function (v) { - var regx = /\$[\{][^\}]*[\}]|(\s+)|\w*\w|\$\{[^\$\(\)\+\-\*\/)\$,]*\w\}|\$\{[^\$\(\)\+\-\*\/]*\w\}|\$\{[^\$\(\)\+\-\*\/]*[\u4e00-\u9fa5]\}|\w|(.)|\n/g; + var regx = /\$[\{][^\}]*[\}]|[^\$\{]*[^\$\{]|\$[^\{]*[^\$\{]/g; return v.match(regx); },