mirror of https://github.com/gorhill/uBlock.git
this fixes #1118
This commit is contained in:
parent
60713fc48a
commit
ab15132914
|
@ -1991,7 +1991,14 @@ FilterContainer.prototype.tokenize = function(url) {
|
||||||
tokenEntry.beg = matches.index;
|
tokenEntry.beg = matches.index;
|
||||||
tokenEntry.token = matches[0];
|
tokenEntry.token = matches[0];
|
||||||
i += 1;
|
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
|
// Sentinel
|
||||||
tokenEntry = tokens[i];
|
tokenEntry = tokens[i];
|
||||||
if ( tokenEntry === undefined ) {
|
if ( tokenEntry === undefined ) {
|
||||||
|
|
Loading…
Reference in New Issue