From 7c1a82bce70de95f88396fee2c0808af8b9fd6e8 Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 11 Sep 2019 15:32:18 -0400 Subject: Fix inline markdown link mention shortening --- lib/markdown-inline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/markdown-inline.js') diff --git a/lib/markdown-inline.js b/lib/markdown-inline.js index 0d4b89f..b9c24a2 100644 --- a/lib/markdown-inline.js +++ b/lib/markdown-inline.js @@ -30,7 +30,7 @@ inlineRenderer.mention = function(preceding, id) { return shortenIfLink(unquote( inlineRenderer.hashtag = function(preceding, tag) { return unquote((preceding||'') + tag) } function shortenIfLink (text) { - return (u.ssbRefRegex.test(text.trim())) ? text.slice(0, 8) : text + return (u.ssbRefRegexOnly.test(text.trim())) ? text.slice(0, 8) : text } module.exports = function(text) { -- cgit v1.2.3