Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

166 B
Raw Blame
import * as v from 'valibot';

export function createRegexSchema(regex: RegExp, errorMessage?: string) {
  return v.pipe(v.string(), v.regex(regex, errorMessage));
}