MCPcopy
hub / github.com/colinhacks/zod / regex

Method regex

packages/zod/src/v4/classic/schemas.ts:376–376  ·  view source on GitHub ↗
(regex: RegExp, params?: string | core.$ZodCheckRegexParams)

Source from the content-addressed store, hash-verified

374
375 // miscellaneous checks
376 regex(regex: RegExp, params?: string | core.$ZodCheckRegexParams): this;
377 includes(value: string, params?: string | core.$ZodCheckIncludesParams): this;
378 startsWith(value: string, params?: string | core.$ZodCheckStartsWithParams): this;
379 endsWith(value: string, params?: string | core.$ZodCheckEndsWithParams): this;

Callers 15

string.test.tsFile · 0.65
preprocess.test.tsFile · 0.65
refine.test.tsFile · 0.65
convertBaseSchemaFunction · 0.65
string.test.tsFile · 0.65
record.test.tsFile · 0.65
codec.test.tsFile · 0.65
preprocess.test.tsFile · 0.65
el.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected