From 4e5150f94de7af9c5f08d10f91cf4695962031f1 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Sat, 16 Jul 2016 19:36:50 +0200 Subject: [PATCH] trim All The Things! --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 4fabdcf..1cbd006 100644 --- a/index.js +++ b/index.js @@ -71,7 +71,7 @@ var handlers = { var lastCommit = commits[0]; shortenURL(lastCommit.url, function(shortUrl) { - msg.push('last commit: ' + lastCommit.message + ' : ' + shortUrl); + msg.push('last commit: ' + lastCommit.message.trim() + ' : ' + shortUrl); say(msg); }); } @@ -93,7 +93,7 @@ var handlers = { shortenURL(url, function(shortUrl) { var msg = [projectName + ': issue #' + issueNumber + ' has changed state ("' + issueState + '")']; - msg.push(issueTitle + ' ' + shortUrl); + msg.push(issueTitle.trim() + ' ' + shortUrl); say(msg) }); }, @@ -115,7 +115,7 @@ var handlers = { shortenURL(url, function(shortUrl) { var msg = [projectName + ': merge request (' + from + ':' + to + ') #' + id + ' has changed state ("' + state + '")']; - msg.push(title + ' ' + shortUrl); + msg.push(title.trim() + ' ' + shortUrl); say(msg); }); },