mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Warn against missing argument in linter
This commit is contained in:
parent
6c29ae82f2
commit
ca2b016ee9
1 changed files with 4 additions and 3 deletions
|
@ -3686,11 +3686,12 @@ class ExtSelectorCompiler {
|
|||
return { attr, value };
|
||||
}
|
||||
|
||||
// When dealing with literal text, we must first eat _some_
|
||||
// backslash characters.
|
||||
// Remove potentially present quotes before processing.
|
||||
compileText(s) {
|
||||
if ( s === '' ) { return; }
|
||||
if ( s === '' ) {
|
||||
this.error = 'argument missing';
|
||||
return;
|
||||
}
|
||||
const r = this.unquoteString(s);
|
||||
if ( r.i !== s.length ) { return; }
|
||||
return r.s;
|
||||
|
|
Loading…
Reference in a new issue