mirror of https://github.com/gorhill/uBlock.git
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
2eec28520f
commit
ba0d4f8a38
|
@ -252,6 +252,12 @@
|
|||
if ( parser.category !== parser.CATStaticExtFilter ) { return false; }
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue