diff --git a/frontend/app/pages/register/company.vue b/frontend/app/pages/register/company.vue index b0fbb38..ebba477 100644 --- a/frontend/app/pages/register/company.vue +++ b/frontend/app/pages/register/company.vue @@ -19,7 +19,8 @@ useSeoMeta({ const rules = { required: (v: any) => (!!v && String(v).trim().length > 0) || 'Povinné pole', email: (v: string) => /.+@.+\..+/.test(v) || 'Zadajte platný email', - phone: (v: string) => (!v || /^[0-9 +()-]{6,}$/.test(v)) || 'Zadajte platné telefónne číslo', + phone: (v: string) => + (!v || /^\+[0-9]{6,13}$/.test(v)) || 'Zadajte platné telefónne číslo. Príklad: +421908123456', mustAgree: (v: boolean) => v === true || 'Je potrebné súhlasiť', }; @@ -101,8 +102,8 @@ async function handleRegistration() { density="comfortable" /> - +