Skip to content

Commit

Permalink
Remove useless escaping for dot in regex, add space selection (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcanessa authored Mar 8, 2017
1 parent 6ff78aa commit d03814d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gren.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(', '));

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit d03814d

Please sign in to comment.