diff --git a/web/src/components/domains/DomainEditModal.vue b/web/src/components/domains/DomainEditModal.vue index 54d0c01..fbd52cf 100644 --- a/web/src/components/domains/DomainEditModal.vue +++ b/web/src/components/domains/DomainEditModal.vue @@ -124,7 +124,7 @@ const rules = { validator: (_rule: FormItemRule, value: string) => { return validate( value, - /([\w-]+\.)+[\w-]+/, + /^([\w-]+\.)+[\w-]+$/, 'domains.errors.domainName', validFlags.domainNameValid ) @@ -137,7 +137,7 @@ const rules = { validator: (_rule: FormItemRule, value: string) => { return validate( value, - /([\w-]+\.)+[\w-]+/, + /^([\w-]+\.)+[\w-]+$/, 'domains.errors.domainName', validFlags.mainNsValid, ) @@ -149,7 +149,7 @@ const rules = { validator: (_rule: FormItemRule, value: string) => { return validate( value, - /[\w-.]+@([\w-]+\.)+[\w-]+/, + /^[\w-.]+@([\w-]+\.)+[\w-]+$/, 'domains.errors.mail', validFlags.adminEmailValid )