mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-22 15:56:15 -04:00
fix(validation): proper rules
This commit is contained in:
parent
b44539c182
commit
11d8110226
2 changed files with 16 additions and 13 deletions
|
@ -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'
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue