1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01: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:
Raymond Hill 2020-07-12 13:00:18 -04:00
parent 2eec28520f
commit ba0d4f8a38
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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;
}