1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

oops: that would cause bad rendering if end of match falls at end of line

This commit is contained in:
gorhill 2014-07-05 10:06:49 -04:00
parent 92edf94053
commit 25c7cb8f99

View File

@ -82,7 +82,7 @@ var renderURL = function(url, filter) {
var index = (re.lastIndex / chunkSize) | 0;
var offset = re.lastIndex % chunkSize;
if ( index > 0 && offset === 0 ) {
offset = 0;
offset = chunkSize;
index -= 1;
}
var segment = renderedURL[index];