Tell us what’s happening:
I’m just curious if I can offer a solution to be added to the documentation. My solution is correct and much more simple than the offered solutions. How do I go about having it added to the documentation?
If anyone sees a reason why my solution wouldn’t be correct can you let me know?
Your code so far
let username = "JackOfAllTrades";
let userCheck = /^\D\w/i; // Change this line
let result = userCheck.test(username);
console.log(result)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames