For the password, I'd modify the regex to limit the total number of word chars and number chars, respectively. E.g. (?=....){,8}(?=...){,4}, where the first group your word chars and your 2nd your numbers. Also, I get the ^ and $. Those makes sense, maybe. But the `.*` and `.+`, why would that be allowed in a password field when you already have ^ and $ bounding (but not limiting) user input? I'd test it to see if you can't copy paste a whole script in there... I know I'm probably nit picking, but regex is kind of my thing (literally just finished a refactoring engine using regexes).
Form vlidation:
front-end: for the user,
back-end: for yourself
Lord KP on JetBrains 🤩
Incredible stuff Kevin! Love your positivity brother and your knowledge is seemingly infinite 🎉
Awesome!
Hello Frontend Friends!
😒
For the password, I'd modify the regex to limit the total number of word chars and number chars, respectively. E.g. (?=....){,8}(?=...){,4}, where the first group your word chars and your 2nd your numbers.
Also, I get the ^ and $. Those makes sense, maybe. But the `.*` and `.+`, why would that be allowed in a password field when you already have ^ and $ bounding (but not limiting) user input?
I'd test it to see if you can't copy paste a whole script in there... I know I'm probably nit picking, but regex is kind of my thing (literally just finished a refactoring engine using regexes).