fix: array to bool in rules

Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
This commit is contained in:
Corentin Thomasset 2020-07-08 20:03:22 +02:00
parent a282c526c1
commit 06aac238b2
No known key found for this signature in database
GPG key ID: DBD997E935996158

View file

@ -56,8 +56,7 @@
v => (!!v && bip39.validateMnemonic(v)) || 'Invalid mnemonic.' v => (!!v && bip39.validateMnemonic(v)) || 'Invalid mnemonic.'
], ],
entropy: [ entropy: [
v => (!!v && v.match(/[0-9a-fA-F]{32}/)) || 'Invalid entropy.' v => (!!v && !!v.match(/[0-9a-fA-F]{32}/)) || 'Invalid entropy.'
] ]
} }
}), }),