1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00
This commit is contained in:
gorhill 2015-03-29 12:35:13 -04:00
parent 60713fc48a
commit ab15132914

View File

@ -1991,7 +1991,14 @@ FilterContainer.prototype.tokenize = function(url) {
tokenEntry.beg = matches.index;
tokenEntry.token = matches[0];
i += 1;
// https://github.com/gorhill/uBlock/issues/1118
// Crazy case... but I guess we have to expect the worst...
if ( i === 2048 ) {
break;
}
}
// Sentinel
tokenEntry = tokens[i];
if ( tokenEntry === undefined ) {