Browse Source

处理bi.code_editor中存在R语言$字符

es6
MrErHu 6 years ago
parent
commit
236b00dce1
  1. 2
      src/base/single/editor/editor.code.js

2
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);
},

Loading…
Cancel
Save