From d03814dda3f72f119e61056a01744828deebd34c Mon Sep 17 00:00:00 2001 From: Alex Canessa Date: Wed, 8 Mar 2017 17:01:53 +0100 Subject: [PATCH] Remove useless escaping for dot in regex, add space selection (#30) --- src/gren.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gren.js b/src/gren.js index 2ccb8d43..560d9ad5 100644 --- a/src/gren.js +++ b/src/gren.js @@ -198,7 +198,7 @@ function getLastTags(gren, releases) { reject(chalk.red(filteredTags[0].tag.name + ' is a release, use --override flag to override an existing release!')); } - console.log('Tags found: ' + filteredTags.map(function (tag) { + console.log('Tags found: ' + filteredTags.map(function(tag) { return tag.tag.name; }).join(', ')); @@ -698,7 +698,7 @@ function createChangelog(gren, body) { return; } - var newReleaseName = body.match(/(##\s[\w\.]+)/)[0]; + var newReleaseName = body.match(/(##\s[\w\s.]+)/)[0]; if (data.match(newReleaseName)) { if (gren.options.force) {