aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-28 16:21:06 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-28 19:36:02 -1000
commitb98ac1c05e9cc1bcb1f25e75147d256ae5d00761 (patch)
treef544b7167ae95a9727cd551e420fc9d341fdb7ab
parentc97320afa26fcd03fbefa6af99045dfb1befa743 (diff)
downloadpatchfoo-b98ac1c05e9cc1bcb1f25e75147d256ae5d00761.tar.gz
patchfoo-b98ac1c05e9cc1bcb1f25e75147d256ae5d00761.zip
Truncate unnamed tags
-rw-r--r--lib/render-msg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index fbaf741..2af4bca 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -2061,7 +2061,7 @@ RenderMsg.prototype.tagTitle = function (cb) {
if (err) return cb(err)
var name = about.name || about.title
|| (about.description && mdInline(about.description))
- cb(null, truncate(name ? name.replace(/^%/, '') : self.msg.key, 72))
+ cb(null, name ? name.replace(/^%/, '') : truncate(self.msg.key, 8))
})
}
var done = multicb({pluck: 1, spread: true})