From 6549e9b1534d39a1d0f5d74e31edd93fba96f18a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 27 Dec 2014 12:55:32 -0700 Subject: Fixed shadowing error. --- js/lib/inlines.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js') diff --git a/js/lib/inlines.js b/js/lib/inlines.js index fe4e947..846ed20 100644 --- a/js/lib/inlines.js +++ b/js/lib/inlines.js @@ -132,9 +132,9 @@ var parseBackticks = function(inlines) { } var afterOpenTicks = this.pos; var foundCode = false; - var match; - while (!foundCode && (match = this.match(/`+/m))) { - if (match === ticks) { + var matched; + while (!foundCode && (matched = this.match(/`+/m))) { + if (matched === ticks) { inlines.push({ t: 'Code', c: this.subject.slice(afterOpenTicks, this.pos - ticks.length) .replace(/[ \n]+/g,' ') -- cgit v1.2.3