refactor: edit conditions rules
This commit is contained in:
parent
11a3177e35
commit
61c54c22f7
1 changed files with 2 additions and 1 deletions
|
|
@ -157,7 +157,8 @@ function formatCode(input: string | undefined, type: 'code' | 'number') {
|
|||
"
|
||||
:rules="[
|
||||
(val) => !!val || $t('form.error.required'),
|
||||
(val) => /^[A-Za-z]+$/.test(val) || $t('form.error.letterOnly'),
|
||||
(val) =>
|
||||
/^[A-Za-z0-9\s]+$/.test(val) || $t('form.error.letterOnly'),
|
||||
]"
|
||||
for="input-name-en"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue