From 99a90e6ae99bee6d2444a36c8a4b555d54e8b62e Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 9 Mar 2017 21:50:28 -0500 Subject: Don't linkify bare blob or msg mentions --- lib/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index fcc737e..c3ceee7 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -904,7 +904,7 @@ Serve.prototype.composer = function (opts, cb) { mention.size = blob.size if (blob.type && blob.type !== 'application/octet-stream') mention.type = blob.type - } else if (/^[@%&]$/.test(mention.link)) { + } else if (mention.link === '@') { // bare mention var name = mention.name var fullName = mention.link + name -- cgit v1.2.3