UNPKG

@mantine/form

Version:

Mantine form management library

14 lines (12 loc) 278 B
'use client'; function matches(regexp, error) { const _error = error || true; return (value) => { if (typeof value !== "string") { return _error; } return regexp.test(value) ? null : _error; }; } export { matches }; //# sourceMappingURL=matches.mjs.map