Reads a required string and validates it against a regex pattern. Accepts either a prebuilt RegExp or a pattern string. Throws a SvelteKit fail(400) callback when required checks fail.
RegExp
fail(400)
Reads a required string and validates it against a regex pattern. Accepts either a prebuilt
RegExpor a pattern string. Throws a SvelteKitfail(400)callback when required checks fail.