mirror of https://github.com/gorhill/uBlock.git
Warn against missing argument in linter
This commit is contained in:
parent
6c29ae82f2
commit
ca2b016ee9
|
@ -3686,11 +3686,12 @@ class ExtSelectorCompiler {
|
||||||
return { attr, value };
|
return { attr, value };
|
||||||
}
|
}
|
||||||
|
|
||||||
// When dealing with literal text, we must first eat _some_
|
|
||||||
// backslash characters.
|
|
||||||
// Remove potentially present quotes before processing.
|
// Remove potentially present quotes before processing.
|
||||||
compileText(s) {
|
compileText(s) {
|
||||||
if ( s === '' ) { return; }
|
if ( s === '' ) {
|
||||||
|
this.error = 'argument missing';
|
||||||
|
return;
|
||||||
|
}
|
||||||
const r = this.unquoteString(s);
|
const r = this.unquoteString(s);
|
||||||
if ( r.i !== s.length ) { return; }
|
if ( r.i !== s.length ) { return; }
|
||||||
return r.s;
|
return r.s;
|
||||||
|
|
Loading…
Reference in New Issue