fix #2631: regression introduced in 0232382695

This commit is contained in:
gorhill 2017-05-19 20:21:28 -04:00
parent fd459c8ecc
commit 853f012802
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ var toBlockDocResult = function(url, hostname, logData) {
// https://github.com/chrisaljoudi/uBlock/issues/1212
// Relax the rule: verify that the match is completely before the path part
if (
(match.index + match.length) <=
(match.index + match[0].length) <=
(url.indexOf(hostname) + hostname.length + 1)
) {
return true;