Closed salvatoreromeo closed 2 years ago
I created this validator as a generica pattern validator.
Usage is as follows (example of a pattern regexp having at least 8 chars/numbers and a special char):
<input type="password" name="password" use:validators={[ required, pattern(/^(?=.?[A-Z])(?=.?[a-z])(?=.?[0-9])(?=.?[#?!@$%^&*-]).{8,}$/) ]} />
Awesome, good idea! Expected to be in the next release.
very good @noahsalvi
I created this validator as a generica pattern validator.
Usage is as follows (example of a pattern regexp having at least 8 chars/numbers and a special char):
<input type="password" name="password" use:validators={[ required, pattern(/^(?=.?[A-Z])(?=.?[a-z])(?=.?[0-9])(?=.?[#?!@$%^&*-]).{8,}$/) ]} />