Browse Source

Merge pull request #71 in ~GUY/fineui from ~WINDY/fineui:master to master

* commit '3c1944b30cc3108c7b455dc900eb8e691b8d8d88':
  update
es6
windy 7 years ago
parent
commit
b1599cad47
  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