diff --git a/src/modules/spink.ts b/src/modules/spink.ts index f1d86ff..4d85df1 100644 --- a/src/modules/spink.ts +++ b/src/modules/spink.ts @@ -126,6 +126,7 @@ function strToDate(str: string) { neco = /^((?\d+)\. ?((?\d+)\.)? ?)?(?\d+)(:(?\d+)(:(?\d+))?)? ?(?

am|pm)?$/.exec(str.toLowerCase()); if (neco) { const g = neco.groups!; + if (typeof g.m == "undefined" && typeof g.p == "undefined") return []; if (g.d) cas.setDate(Number(g.d)); if (g.mo) cas.setMonth(Number(g.mo) - 1); const h = Number(g.h);