MCPcopy Create free account
hub / github.com/Effect-TS/effect / matchPart

Method matchPart

packages/effect/src/SchemaAST.ts:1418–1420  ·  view source on GitHub ↗

@internal

(s: string, options: ParseOptions)

Source from the content-addressed store, hash-verified

1416 }
1417 /** @internal */
1418 matchPart(s: string, options: ParseOptions): number | undefined {
1419 return this._match(isStringFiniteRegExp, s, options)
1420 }
1421 private _match(regexp: RegExp, s: string, options: ParseOptions): number | undefined {
1422 if (!regexp.test(s)) return undefined
1423 const value = globalThis.Number(s)

Callers

nothing calls this directly

Calls 1

_matchMethod · 0.95

Tested by

no test coverage detected