diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-09-11 15:32:18 -0400 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-09-11 15:32:18 -0400 |
commit | 7c1a82bce70de95f88396fee2c0808af8b9fd6e8 (patch) | |
tree | 31828bf54373b2dbe060fd72ccb9bd55c348d529 /lib | |
parent | 7f48a3c6b8aefa5f37c592a4dfb7d78346d904ba (diff) | |
download | patchfoo-7c1a82bce70de95f88396fee2c0808af8b9fd6e8.tar.gz patchfoo-7c1a82bce70de95f88396fee2c0808af8b9fd6e8.zip |
Fix inline markdown link mention shortening
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) { |