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.
The
minvalidation evaluates strings that represent numbers (e.g.'1234') against their numeric value.This field:
With this input:
'8'evaluates tovalid. Evaluation here.I didn't test it but it seems
maxis different and is accounting for that.