diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/markdown-inline.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |