MCPcopy Index your code
hub / github.com/JavaScriptRegenerated/yieldparser / parseNaturalDate

Function parseNaturalDate

src/natural-dates.test.ts:105–109  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

103 }
104
105 function parseNaturalDate(input: string) {
106 input = input.toLowerCase();
107 input = input.replace(/[,]/g, '');
108 return parse(input, NaturalDateParser());
109 }
110
111 test.each([
112 ['Monday', { weekdays: new Set(['monday']) }],

Callers 1

Calls 2

parseFunction · 0.90
NaturalDateParserFunction · 0.85

Tested by

no test coverage detected