Skip to content

Commit c3368fa

Browse files
committed
Edited whitespace for readability
1 parent 2ce35d5 commit c3368fa

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
@@ -34,7 +34,7 @@ export function bumpDateVer({ filePath, verbose = true } = {}) { // bumps YYYY.M
3434
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+
37-
today}.${parseInt(oldVer.split('.').pop()) + 1}`
37+
today}.${ parseInt(oldVer.split('.').pop()) +1 }`
3838
: today // bump to today
3939
fs.writeFileSync(filePath, fileContent.replace(new RegExp(`("?)${oldVer}("?)`), `$1${newVer}$2`), 'utf-8')
4040
if (verbose) this.log.success(`${nc}Updated: ${bw}v${oldVer}${nc}${bg}v${newVer}${nc}\n`)

0 commit comments

Comments
 (0)