MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / isDateInputValue

Function isDateInputValue

src/views/StatsView.ts:92–94  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

90}
91
92function isDateInputValue(value: unknown): value is string {
93 return typeof value === "string" && /^\d{4}-\d{2}-\d{2}$/.test(value);
94}
95
96export function normalizeStatsFilters(value: unknown): StatsFilters {
97 if (!value || typeof value !== "object") {

Callers 1

normalizeStatsFiltersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected