aboutsummaryrefslogtreecommitdiff
path: root/src/lib/server/services/validation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/server/services/validation.ts')
-rw-r--r--src/lib/server/services/validation.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/server/services/validation.ts b/src/lib/server/services/validation.ts
index 69820ea..b0a515c 100644
--- a/src/lib/server/services/validation.ts
+++ b/src/lib/server/services/validation.ts
@@ -45,7 +45,7 @@ export function parseOptionalNumber(
return n;
}
-/** Parses an interval like '2w' into days; throws when the format is invalid. */
+/** Parses an interval like '2w' into days; throws on invalid format. */
export function parseFrequencyDays(value: FormDataEntryValue | null): number {
const days = parseIntervalToDays(value?.toString() ?? '');
if (days === null) {