From 519372056780d3c5a67983f47cc367ee51c7de0a Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 20 Apr 2026 09:55:27 +0700 Subject: [PATCH] fixed format email --- src/components/Dialogs/DialogDebug.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Dialogs/DialogDebug.vue b/src/components/Dialogs/DialogDebug.vue index 6443dff90..42230b6f4 100644 --- a/src/components/Dialogs/DialogDebug.vue +++ b/src/components/Dialogs/DialogDebug.vue @@ -368,7 +368,11 @@ function onClose() { class="inputgreen" hide-bottom-space :rules="[ - (val: string) => !!val || 'กรุณากรอกอีเมลติดต่อกลับ', + (val: string) => !!val || 'กรุณากรอกที่อยู่อีเมล', + (val: string) => { + const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; + return emailPattern.test(val) || 'กรุณากรอกที่อยู่อีเมลในรูปแบบที่ถูกต้อง'; + } ]" />