guy 8 years ago
parent
commit
e47d21d34b
  1. 2
      src/base/single/editor/editor.code.js

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

Loading…
Cancel
Save