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,