Hello,
It’s because of your /g flag, if you remove it the test should pass.
You can check the explanation of why this happens on this post:
The “Restrict Possible Usernames” lesson is bugged - JavaScript - The freeCodeCamp Forum
Hello,
It’s because of your /g flag, if you remove it the test should pass.
You can check the explanation of why this happens on this post:
The “Restrict Possible Usernames” lesson is bugged - JavaScript - The freeCodeCamp Forum