diff --git a/frontend/src/lib/components/ui/phone-input/PhoneInput.svelte b/frontend/src/lib/components/ui/phone-input/PhoneInput.svelte index 2229e34..5c85a01 100644 --- a/frontend/src/lib/components/ui/phone-input/PhoneInput.svelte +++ b/frontend/src/lib/components/ui/phone-input/PhoneInput.svelte @@ -49,7 +49,7 @@ } function normalizePhone(value: string): string { - let cleaned = value.replace(/[\s\-\(\)]/g, ''); + let cleaned = value.replace(/[\s\-()]/g, ''); if (cleaned.startsWith('07')) { cleaned = '+44' + cleaned.substring(1); } diff --git a/frontend/src/routes/account/+page.svelte b/frontend/src/routes/account/+page.svelte index c45ce1a..049d21a 100644 --- a/frontend/src/routes/account/+page.svelte +++ b/frontend/src/routes/account/+page.svelte @@ -800,7 +800,7 @@ let savingName = $state(false); // Name validation (unicode letters, spaces, hyphen, apostrophe, dot) - const nameRegex = /^[\p{L}\p{M}\s\-'\.]+$/u; + const nameRegex = /^[\p{L}\p{M}\s-'.]+$/u; function startEditFirstName() { firstNameInput = userData?.firstName || '';