guy 8 years ago
parent
commit
9b73cd55ee
  1. 2
      bi/base.js
  2. 2
      docs/base.js

2
bi/base.js

@ -17785,7 +17785,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);

2
docs/base.js

@ -17785,7 +17785,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