atherosai / ui

Simple UI examples from my social media
https://learning.atheros.ai
10.51k stars 1.85k forks source link

Password doesn't accept symbols #51

Open Pacifisity opened 4 weeks ago

Pacifisity commented 4 weeks ago

The input box in login-05 requires 6 characters, a letter and a number. However, this prevents users from using symbols in their password.

Previous RegEx: ^(?=.[A-Za-z])(?=.\d)[A-Za-z\d]{6,}$

New RegEx: ^(?=.[A-Za-z])(?=.\d)[A-Za-z\d\W]{6,}$