Skip to content

Commit dd71bf8

Browse files
committed
Replaced regex for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/utils/bump]
1 parent 54bb871 commit dd71bf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/bump/chatbots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
cacheMode: args.some(arg => arg.startsWith('--cache')),
1818
devMode: args.some(arg => arg.startsWith('--dev')),
1919
commitMsg: (() => {
20-
const msgIdx = args.findIndex(arg => /^--?(?:m|commit-msg)$/.test(arg))
20+
const msgIdx = args.findIndex(arg => ['--commit-msg', '-m'].includes(arg))
2121
return msgIdx != -1 && args[msgIdx +1] ? args[msgIdx +1].replace(/^"|"$/g, '') : null
2222
})(),
2323
noPush: args.some(arg => ['--no-push', '-np'].includes(arg))

0 commit comments

Comments
 (0)