We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e1d72f commit dd28ffdCopy full SHA for dd28ffd
src/ap-calc/script.ts
@@ -61,7 +61,7 @@ async function main() {
61
const timerValue = args.positionals[1] || "";
62
let timerSeconds = 300;
63
if (timerValue) {
64
- const match = timerValue.match(/^([0-4]):([0-5][0-9])$/);
+ const match = timerValue.match(/^([0-4]):?([0-5][0-9])$/);
65
if (!match) {
66
throw new Error(`Could not parse value for current timer: ${timerValue}`);
67
}
0 commit comments