From 3c1944b30cc3108c7b455dc900eb8e691b8d8d88 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 14 Jun 2017 16:06:59 +0800 Subject: [PATCH] update --- 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 3acb4b1642..51579c7020 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);