fix(validation): proper rules

This commit is contained in:
Corentin Thomasset 2022-04-11 23:08:50 +02:00
parent b44539c182
commit 11d8110226
No known key found for this signature in database
GPG key ID: DBD997E935996158
2 changed files with 16 additions and 13 deletions

View file

@ -110,7 +110,7 @@ const entropyValidation = useValidation({
message: 'Entropy length should be >= 16, <= 32 and be a multiple of 4'
},
{
validator: (value) => /^[a-fA-f0-9]?$/.test(value),
validator: (value) => /^[a-fA-F0-9]*$/.test(value),
message: 'Entropy should an hexadecimal number'
}
]