(includes: string, annotations?: Annotations.Filter)
| 6850 | * @since 4.0.0 |
| 6851 | */ |
| 6852 | export 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…