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

Function isIncludes

repos/effect/packages/effect/src/Schema.ts:6852–6871  ·  view source on GitHub ↗
(includes: string, annotations?: Annotations.Filter)

Source from the content-addressed store, hash-verified

6850 * @since 4.0.0
6851 */
6852export function isULID(annotations?: Annotations.Filter) {
6853 const regExp = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/
6854 return isPattern(
6855 regExp,
6856 {
6857 representation: {
6858 id: "effect/schema/isULID",
6859 payload: null
6860 },
6861 toJsonSchema: () => ({ pattern: regExp.source }),
6862 toCode: () => ({ runtime: "Schema.isULID()" }),
6863 ...annotations
6864 }
6865 )
6866}
6867/**
6868 * Validates that a string is valid Base64 encoded data.
6869 *
6870 * **Details**
6871 *
6872 * JSON Schema:
6873 *
6874 * This check corresponds to a `pattern` constraint in JSON Schema that matches

Callers

nothing calls this directly

Calls 1

makeFilterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…