mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-17 21:31:43 +01:00
fix pattern min length to match username minLength
This commit is contained in:
parent
5f5ebc085b
commit
99747790bb
@ -89,7 +89,7 @@ const MetadataForm = ({ defaultValues, onSubmit }: MetadataFormProps) => {
|
||||
minLength: 2,
|
||||
maxLength: 64,
|
||||
required: true,
|
||||
pattern: /^[a-zA-Z0-9_-]{4,64}$/,
|
||||
pattern: /^[a-zA-Z0-9_-]{2,64}$/,
|
||||
})}
|
||||
/>
|
||||
<FormErrorMessage>{errors.username?.message}</FormErrorMessage>
|
||||
|
Loading…
x
Reference in New Issue
Block a user