Fix: shouldn't contain new line
This commit is contained in:
parent
b7b5888431
commit
37c83ce187
|
@ -189,7 +189,7 @@ function createSourceEditor(style) {
|
||||||
function *findAppliesTo(posStart, posEnd) {
|
function *findAppliesTo(posStart, posEnd) {
|
||||||
const text = cm.getValue();
|
const text = cm.getValue();
|
||||||
const re = /^[\t ]*@-moz-document\s+/mg;
|
const re = /^[\t ]*@-moz-document\s+/mg;
|
||||||
const applyRe = /^(url|url-prefix|domain|regexp)\(((['"])(?:\\\3|[\s\S])*?\3|[^)]*)\)[\s,]*/i;
|
const applyRe = /^(url|url-prefix|domain|regexp)\(((['"])(?:\\\\|\\\n|\\\3|[^\n])*?\3|[^)\n]*)\)[\s,]*/i;
|
||||||
let preIndex = re.lastIndex = posStart;
|
let preIndex = re.lastIndex = posStart;
|
||||||
let match;
|
let match;
|
||||||
let pos = cm.posFromIndex(preIndex);
|
let pos = cm.posFromIndex(preIndex);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user