From f248a6ab4e17fad731f20f45c9a3bbc3aea99f8f Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 13 Mar 2016 15:53:53 +0100 Subject: [PATCH] Fixed user Markdown links --- public_html/js/Util/Misc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/js/Util/Misc.js b/public_html/js/Util/Misc.js index 924ebff1..922a32c2 100644 --- a/public_html/js/Util/Misc.js +++ b/public_html/js/Util/Misc.js @@ -208,7 +208,7 @@ App.Util.Misc = function(_, jQuery, marked, promise) { //post, user and tags premalinks text = text.replace(/(^|^\(|(?:[^\]])\(|[\s<>\[\]\)])([+#@][a-zA-Z0-9_-]+)/g, '$1[$2]($2)'); text = text.replace(/\]\(@(\d+)\)/g, '](#/post/$1)'); - text = text.replace(/\]\(+([a-zA-Z0-9_-]+)\)/g, '](#/user/$1)'); + text = text.replace(/\]\(\+([a-zA-Z0-9_-]+)\)/g, '](#/user/$1)'); text = text.replace(/\]\(#([a-zA-Z0-9_-]+)\)/g, '](#/posts/query=$1)'); return text; };