Hyperlinkv0.8.0-beta.28

Schema

Schema.isPatternconsteffect/Schema.ts:6576
(
  regExp: globalThis.RegExp,
  annotations?: Annotations.Filter
): SchemaAST.Filter<string>

Validates that a string matches the specified regular expression pattern.

Details

JSON Schema:

This check corresponds to the pattern constraint in JSON Schema.

Arbitrary:

When generating test data with fast-check, this applies a patterns constraint to ensure generated strings match the specified RegExp pattern.

String checks
Source effect/Schema.ts:65762 lines
export const isPattern: (regExp: globalThis.RegExp, annotations?: Annotations.Filter) => SchemaAST.Filter<string> =
  SchemaAST.isPattern
Referenced by 6 symbols