1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Mind zero quantifier

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2371
This commit is contained in:
Raymond Hill 2022-11-18 08:52:32 -05:00
parent f48c03e531
commit 04b8d495b6
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -3051,6 +3051,7 @@ Parser.utils = Parser.prototype.utils = (( ) => {
return this.tokenizableStrFromNode(node.val);
}
case 16: /* T_QUANTIFIER, 'Quantifier' */ {
if ( node.flags.max === 0 ) { return ''; }
const s = this.tokenizableStrFromNode(node.val);
const first = this.firstCharCodeClass(s);
const last = this.lastCharCodeClass(s);