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"); }