MCPcopy Create free account
hub / github.com/effect-app/libs / isPattern

Function isPattern

repos/effect/packages/effect/src/SchemaAST.ts:3043–3061  ·  view source on GitHub ↗
(regExp: globalThis.RegExp, annotations?: Schema.Annotations.Filter)

Source from the content-addressed store, hash-verified

3041 this.context
3042 )
3043 }
3044 /** @internal */
3045 getExpected(getExpected: (ast: AST) => string): string {
3046 return getExpected(this.thunk())
3047 }
3048}
3049
3050// -----------------------------------------------------------------------------
3051// Checks
3052// -----------------------------------------------------------------------------
3053
3054/**
3055 * Represents a single validation check attached to an AST node.
3056 *
3057 * **Details**
3058 *
3059 * - `run` — the validation function. Returns `undefined` on success, or an
3060 * `Issue` on failure.
3061 * - `annotations` — optional filter-level annotations (expected message,
3062 * representation, arbitrary constraint hints).
3063 * - `aborted` — when `true`, parsing stops immediately after this filter
3064 * fails (no further checks run).

Callers 8

isStringFiniteFunction · 0.85
isStringBigIntFunction · 0.85
isStringSymbolFunction · 0.85
isUUIDFunction · 0.85
isGUIDFunction · 0.85
isULIDFunction · 0.85
isBase64Function · 0.85
isBase64UrlFunction · 0.85

Calls 1

makeFilterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…