Skip to content

Commit

Permalink
Merge pull request #9 from Nordstrom/destroy-endline
Browse files Browse the repository at this point in the history
Delete newline in branch name
  • Loading branch information
jollyromp authored Jun 19, 2018
2 parents 6b50121 + 9550882 commit ba752b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function getEnvIdFromBranch () {
return _.trimEnd(_.truncate(branch, {
length: 13,
omission: ''
}), '-')
}), '-').replace(/(\r\n|\n|\r)/gm, '')
} catch (e) {
console.log('ERR: ', e)
// Do nothing
Expand Down
2 changes: 1 addition & 1 deletion test/_env.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ module.exports = function (regex) {
return env ? _.truncate(env, {
length: 13,
omission: ''
}) : undefined
}).replace(/(\r\n|\n|\r)/gm, '') : undefined
}

0 comments on commit ba752b7

Please sign in to comment.