From 8199c3b4401484d86a3ef901a4a0253586696702 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 7 Nov 2014 12:09:45 -0500 Subject: [PATCH] Don't add the `g` flag --- app/assets/javascripts/discourse/lib/markdown.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/markdown.js b/app/assets/javascripts/discourse/lib/markdown.js index 8f57adcfb97..983dbb9d81f 100644 --- a/app/assets/javascripts/discourse/lib/markdown.js +++ b/app/assets/javascripts/discourse/lib/markdown.js @@ -84,7 +84,6 @@ function anchorRegexp(regex) { var flags = ""; if (regex.global) { - flags += "g"; if (typeof console !== 'undefined') { console.warn("attribute validation regex should not be global"); }