validation

This commit is contained in:
Alex Holliday committed 2026-02-07 20:54:17 +00:00
1 parent af4c9d8f91
commit b6004241e7
8 files changed
+113 -10

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
export const specialCharPattern = /[!?@#$%^&*()\-_=+[\]{};:'",.<>~`|\\/]/;
// Unicode-aware name pattern (allows letters, marks, apostrophes, parentheses, hyphens, periods, spaces)
export const namePattern = /^[\p{L}\p{M}''()\-\. ]+$/u;