mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix the reporting of invalid static extended filters in the logger
This is a regression caused by the re-factoring necessary to support the new static filtering parser code.
This commit is contained in:
parent
924e70280b
commit
bf600d77a1
1 changed files with 6 additions and 0 deletions
|
|
@ -252,6 +252,12 @@
|
||||||
if ( parser.category !== parser.CATStaticExtFilter ) { return false; }
|
if ( parser.category !== parser.CATStaticExtFilter ) { return false; }
|
||||||
|
|
||||||
if ( (parser.flavorBits & parser.BITFlavorUnsupported) !== 0 ) {
|
if ( (parser.flavorBits & parser.BITFlavorUnsupported) !== 0 ) {
|
||||||
|
const who = writer.properties.get('assetKey') || '?';
|
||||||
|
µb.logger.writeOne({
|
||||||
|
realm: 'message',
|
||||||
|
type: 'error',
|
||||||
|
text: `Invalid extended filter in ${who}: ${parser.raw}`
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue