From b8c979653e082ea343ffeca70061430b898f3bbb Mon Sep 17 00:00:00 2001 From: Corey Innis Date: Wed, 31 Oct 2012 01:18:06 -0700 Subject: [PATCH] post-merge (abackstrom) remove extraneous var declaration. --- src/showdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/showdown.js b/src/showdown.js index 3b5eb13..081e0a9 100644 --- a/src/showdown.js +++ b/src/showdown.js @@ -290,7 +290,7 @@ var _StripLinkDefinitions = function(text) { // attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug text += "~0"; - var text = text.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|(?=~0))/gm, + text = text.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|(?=~0))/gm, function (wholeMatch,m1,m2,m3,m4) { m1 = m1.toLowerCase(); g_urls[m1] = _EncodeAmpsAndAngles(m2); // Link IDs are case-insensitive