Skip to content

Commit

Permalink
fix: regular expression for account uid
Browse files Browse the repository at this point in the history
  • Loading branch information
lgou2w committed Jan 28, 2024
1 parent 14cf889 commit ad090f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/account/AccountMenuDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function AccountMenuDialogForm (props: AccountMenuDialogFormProps) {
InputProps={{
...register('uid', {
required: '请填写账号 UID 字段!',
validate: value => /\d+/.test(value) || '请输入正确的 UID 值!'
validate: value => /^[1-9][0-9]{8}$/.test(value) || '请输入正确的 UID 值!'
}),
onKeyPress: numericOnly,
startAdornment: (
Expand Down

0 comments on commit ad090f8

Please sign in to comment.