diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-27 12:55:32 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-27 12:55:32 -0700 |
commit | 6549e9b1534d39a1d0f5d74e31edd93fba96f18a (patch) | |
tree | 11129bc2ebfd237a80ee22dc3faae476bdcc9909 | |
parent | 82d7f367580ffd1ccc306cfb7de4e35f3b99ea99 (diff) |
Fixed shadowing error.
-rw-r--r-- | js/lib/inlines.js | 6 |
1 files changed, 3 insertions, 3 deletions
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,' ') |