Skip to content

Commit 6d3310e

Browse files
committed
Edited whitespace for readability
1 parent 7c1a034 commit 6d3310e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/bump/bump-utils.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ const colors = {
2121
const log = {}, { nc, dg, bw, by, bg, br } = colors
2222
const lvlColors = { hash: dg, info: bw, working: by, success: bg, error: br }
2323
Object.keys(lvlColors).forEach(lvl => log[lvl] = function(msg) {
24-
const formattedMsg = lvlColors[lvl] + (log.endedWithLineBreak ? msg.trimStart() : msg) + nc
24+
const formattedMsg = lvlColors[lvl] +( log.endedWithLineBreak ? msg.trimStart() : msg ) + nc
2525
console.log(formattedMsg) ; log.endedWithLineBreak = msg.toString().endsWith('\n')
2626
})
2727

2828
export { colors, log }
2929

3030
export function bumpUserJSver(userJSfilePath) {
3131
const date = new Date(),
32-
today = `${date.getFullYear()}.${date.getMonth() +1}.${date.getDate()}`, // YYYY.M.D format
32+
today = `${date.getFullYear()}.${ date.getMonth() +1 }.${date.getDate()}`, // YYYY.M.D format
3333
reVersion = /(@version\s+)([\d.]+)/,
3434
userJScontent = fs.readFileSync(userJSfilePath, 'utf-8'),
3535
currentVer = userJScontent.match(reVersion)[2]

0 commit comments

Comments
 (0)