Open
Description
The min
validation evaluates strings that represent numbers (e.g. '1234'
) against their numeric value.
This field:
export const password = field('password', '', [required(), min(8)])
With this input: '8'
evaluates to valid
. Evaluation here.
I didn't test it but it seems max
is different and is accounting for that.