MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / matchDateFormat

Function matchDateFormat

packages/rest/src/coercion/utils.ts:62–67  ·  view source on GitHub ↗
(date: string)

Source from the content-addressed store, hash-verified

60 * @param date - The date to verify
61 */
62export function matchDateFormat(date: string) {
63 const pattern = new RegExp(REGEX_RFC3339_DATE);
64 const result = pattern.test(date);
65 debug('matchDateFormat(%j) -> %s', date, result);
66 return result;
67}
68
69/**
70 * Return the corresponding OpenAPI data type given an OpenAPI schema

Callers 1

coerceDatetimeFunction · 0.90

Calls 1

testMethod · 0.45

Tested by

no test coverage detected