mirror of https://github.com/gorhill/uBlock.git
oops: that would cause bad rendering if end of match falls at end of line
This commit is contained in:
parent
92edf94053
commit
25c7cb8f99
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue