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
1 changed files with 1 additions and 1 deletions

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];