MCPcopy
hub / github.com/date-fns/date-fns / isProtectedDayOfYearToken

Function isProtectedDayOfYearToken

pkgs/core/src/_lib/protectedTokens/index.ts:6–8  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

4const throwTokens = ["D", "DD", "YY", "YYYY"];
5
6export function isProtectedDayOfYearToken(token: string) {
7 return dayOfYearTokenRE.test(token);
8}
9
10export function isProtectedWeekYearToken(token: string) {
11 return weekYearTokenRE.test(token);

Callers 2

parseFunction · 0.90
formatFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected