diff --git a/src/base/single/editor/editor.code.js b/src/base/single/editor/editor.code.js index 4242fd1ed1..c7b9246d9b 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); },