summaryrefslogtreecommitdiffstats
path: root/extensions/Splinter/web
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-03-16 17:23:15 +0100
committerByron Jones <glob@mozilla.com>2015-03-16 17:23:15 +0100
commit5365c225d354ef7962b8d54b37c8139693d682ba (patch)
treee7cf5fac1e08f5d157f322219db684abdfe6e868 /extensions/Splinter/web
parent27ecca5e682829c23bd5caefee6417f1c2d4f575 (diff)
downloadbugzilla-5365c225d354ef7962b8d54b37c8139693d682ba.tar.gz
bugzilla-5365c225d354ef7962b8d54b37c8139693d682ba.tar.xz
Bug 1143160: A review comment on bug 1131776 breaks splinter
Diffstat (limited to 'extensions/Splinter/web')
-rw-r--r--extensions/Splinter/web/splinter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/Splinter/web/splinter.js b/extensions/Splinter/web/splinter.js
index b33fa778c..d6317cd9a 100644
--- a/extensions/Splinter/web/splinter.js
+++ b/extensions/Splinter/web/splinter.js
@@ -1058,8 +1058,8 @@ Splinter.Review.Review.prototype = {
for (i = 0; i < rawlines.length; i++) {
var line = rawlines[i];
var count = 1;
- if (i < rawlines.length - 1 && rawlines[i + 1].match(/^... \d+\s+/)) {
- var m3 = /^\.\.\.\s+(\d+)\s+/.exec(rawlines[i + 1]);
+ if (i < rawlines.length - 1 && rawlines[i + 1].match(/^\.\.\. \d+\s+/)) {
+ var m3 = /^\.\.\. (\d+)\s+/.exec(rawlines[i + 1]);
count += parseInt(m3[1], 10);
i += 1;
}