mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-02 00:59:38 +02:00
Warn against missing argument in linter
This commit is contained in:
parent
6c29ae82f2
commit
ca2b016ee9
@ -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 New Issue
Block a user