Fix range parser in prevent-setTimeout scriptlet

Related feedback:
https://github.com/uBlockOrigin/uBlock-discussions/discussions/925#discussioncomment-11940830
This commit is contained in:
Raymond Hill 2025-03-04 07:12:56 -05:00
parent 987ddad1fd
commit e636c32f2a
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -36,7 +36,7 @@ class RangeParser {
this.min = this.max = parseInt(s, 10) || 0;
}
if ( pos !== -1 ) {
this.max = parseInt(s.slice(1), 10) || Number.MAX_SAFE_INTEGER;
this.max = parseInt(s.slice(pos + 1), 10) || Number.MAX_SAFE_INTEGER;
}
}
unbound() {