diff --git a/scripts/getBuildData.js b/scripts/getBuildData.js index 369d1ef..c9a18e8 100644 --- a/scripts/getBuildData.js +++ b/scripts/getBuildData.js @@ -4,7 +4,7 @@ module.exports = (isCompiled = false) => { let buildData = ''; if (git.branch() !== 'master') { - buildData += '\n'; + buildData += ''; if (isCompiled) { buildData += ` @@ -22,5 +22,5 @@ module.exports = (isCompiled = false) => { } } - return buildData.replace(/\n/, '').replace(/^ +/gm, ' '); + return buildData.replace(/^ +/gm, ' '); };