MCPcopy Index your code
hub / github.com/Lemoncode/fonk / isValidPattern

Function isValidPattern

src/validators/pattern-helpers.ts:4–5  ·  view source on GitHub ↗
(value, pattern: RegExp)

Source from the content-addressed store, hash-verified

2 value === null || value === undefined || value === '';
3
4export const isValidPattern = (value, pattern: RegExp): boolean =>
5 isEmptyValue(value) ? true : pattern.test(value);

Callers 2

isValidFieldFunction · 0.90
validatorFunction · 0.90

Calls 1

isEmptyValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…