trim All The Things!

This commit is contained in:
Benjamin Bouvier 2016-07-16 19:36:50 +02:00
parent 9b0fcde3bd
commit 4e5150f94d
1 changed files with 3 additions and 3 deletions

View File

@ -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);
});
},