From 25c7cb8f99b2ce739c93c832b039e05c3cde1ea8 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 5 Jul 2014 10:06:49 -0400 Subject: [PATCH] oops: that would cause bad rendering if end of match falls at end of line --- js/stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/stats.js b/js/stats.js index 1fb896aaa..6ea6d3f4f 100644 --- a/js/stats.js +++ b/js/stats.js @@ -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];