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)"