Skip to content

[BUG] min validation evaluates string as number #103

Open
@grischaerbe

Description

@grischaerbe

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions