Skip to content

Commit dd28ffd

Browse files
committed
change: make colon optional in ap-calc args
1 parent 1e1d72f commit dd28ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ap-calc/script.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async function main() {
6161
const timerValue = args.positionals[1] || "";
6262
let timerSeconds = 300;
6363
if (timerValue) {
64-
const match = timerValue.match(/^([0-4]):([0-5][0-9])$/);
64+
const match = timerValue.match(/^([0-4]):?([0-5][0-9])$/);
6565
if (!match) {
6666
throw new Error(`Could not parse value for current timer: ${timerValue}`);
6767
}

0 commit comments

Comments
 (0)