diff --git a/src/base/single/editor/editor.code.js b/src/base/single/editor/editor.code.js index 3acb4b164..51579c702 100644 --- a/src/base/single/editor/editor.code.js +++ b/src/base/single/editor/editor.code.js @@ -86,7 +86,7 @@ BI.CodeEditor = BI.inherit(BI.Single, { this.editor.replaceSelection(param); var to = this.editor.getCursor(); var options = {className: 'param', atomic: true}; - if(BI.isNotNull(param.match(//))){ + if(BI.isNotNull(param.match(/^$/))){ options.className = 'error-param'; } this.editor.markText(from, to, options);