summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-27 12:55:32 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-27 12:55:32 -0700
commit6549e9b1534d39a1d0f5d74e31edd93fba96f18a (patch)
tree11129bc2ebfd237a80ee22dc3faae476bdcc9909 /js
parent82d7f367580ffd1ccc306cfb7de4e35f3b99ea99 (diff)
Fixed shadowing error.
Diffstat (limited to 'js')
-rw-r--r--js/lib/inlines.js6
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,' ')