From 7664a60523a2f4f13ea9c630867c62ab85420f40 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Thu, 5 Sep 2024 10:42:05 +0700 Subject: [PATCH] fix(01): abbrev letter and number --- src/components/01_branch-management/FormBranchInformation.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/01_branch-management/FormBranchInformation.vue b/src/components/01_branch-management/FormBranchInformation.vue index f13cf051..28fd6004 100644 --- a/src/components/01_branch-management/FormBranchInformation.vue +++ b/src/components/01_branch-management/FormBranchInformation.vue @@ -57,9 +57,9 @@ function formatCode(input: string | undefined, type: 'code' | 'number') { :rules="[ (val) => (val && val.length > 0) || $t('form.error.required'), (val) => - (val && val.length > 0 && /^[a-zA-Z]+$/.test(val)) || + (val && val.length > 0 && /^[a-zA-Z0-9]+$/.test(val)) || $t('form.error.invalidCustomeMessage', { - msg: $t('form.error.letterOnly'), + msg: $t('form.error.letterAndNumOnly'), }), ]" @update:model-value="(v) => (abbreviation = v as string)"