1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 19:02:30 +01:00

code review: diregard letter case when validating popup filters as popunder ones

This commit is contained in:
gorhill 2017-10-13 09:52:17 -04:00
parent 9b83033785
commit d44c54a477
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -664,7 +664,7 @@ vAPI.tabs.onPopupUpdated = (function() {
if ( logData.token === µb.staticNetFilteringEngine.dotTokenHash ) {
return result;
}
var re = new RegExp(logData.regex),
var re = new RegExp(logData.regex, 'i'),
matches = re.exec(popunderURL);
if ( matches === null ) { return 0; }
var beg = matches.index,