diff --git a/index.js b/index.js index db9a98f..fbbf014 100644 --- a/index.js +++ b/index.js @@ -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 diff --git a/test/_env.js b/test/_env.js index 6f04ca5..50e0f8b 100644 --- a/test/_env.js +++ b/test/_env.js @@ -9,5 +9,5 @@ module.exports = function (regex) { return env ? _.truncate(env, { length: 13, omission: '' - }) : undefined + }).replace(/(\r\n|\n|\r)/gm, '') : undefined }