aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-09 21:50:28 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-09 22:22:52 -0500
commit99a90e6ae99bee6d2444a36c8a4b555d54e8b62e (patch)
tree56142983541c27f73910afc21093677f1a01cc1b /lib/serve.js
parente90c21e476f4116f6ea58ba854766583cda3c531 (diff)
downloadpatchfoo-99a90e6ae99bee6d2444a36c8a4b555d54e8b62e.tar.gz
patchfoo-99a90e6ae99bee6d2444a36c8a4b555d54e8b62e.zip
Don't linkify bare blob or msg mentions
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js2
1 files changed, 1 insertions, 1 deletions
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