Skip to content

Commit 29f175c

Browse files
committed
Edited whitespace
1 parent 8ac1bb8 commit 29f175c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/bump/bump-utils.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function bumpDateVer({ filePath, verbose = true } = {}) { // bumps YYYY.M
3131
const fileContent = fs.readFileSync(filePath, 'utf-8'),
3232
oldVer = fileContent.match(/(?:@version|"version"):?\s*"?([\d.]+)"?/)?.[1]
3333
if (!oldVer) return this.log.info(`No version found in ${filePath}`)
34-
const date = new Date(), today = `${date.getFullYear()}.${date.getMonth() + 1}.${date.getDate()}`
34+
const date = new Date(), today = `${date.getFullYear()}.${ date.getMonth() +1 }.${date.getDate()}`
3535
const newVer = oldVer == today ? `${today}.1` // bump sub-ver to 1
3636
: oldVer.startsWith(`${today}.`) ? // bump sub-ver to 2+
3737
`${today}.${ parseInt(oldVer.split('.').pop()) +1 }`

0 commit comments

Comments
 (0)