Hi everyone
it seems to i have found minor bug in Regular Expressions: Restrict Possible Usernames lesson.
here is my code:
let username = “JackOfAllTrades”;
let userCheck = /\D\D/; // Change this line
let result = userCheck.test(username);
// for test
let myResult = username.match(userCheck);
console.log(myResult)
lessons restriction is my code should match whole word, not just 2 first letters. My code clearly don’t , but i managed to surpass it anyway.
I’m new here and don’t know where to bug report properly, so i put it here.
Sure it is not a big deal but i think is better to warn you guys.