Design comparison
SolutionDesign
Solution retrospective
Hello everyone!
I learned about a test bug on regex in JS where it saves the index of the position of the last thing checked if you're using the global flag. By removing the global flag, I was able to get the validation working for every inputted character instead of checking at submission. Feel free to leave any feedback or suggestions! Thanks!
Michael Johnson
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord