Bug in regex chewie challenge

Tell us what’s happening:
Is there a bug in the challenge? I know this is right! I made it pass with regex101, included the other examples. It does not work for the other examples. And it’s still not working.

Your code so far


let chewieQuote = "Aaaaaaaaaaaaaaaarrrgh!";
let chewieRegex = /^a*/gi; // Change this line
let result = chewieQuote.match(chewieRegex);
console.log(result)

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36.

Your regex does not need flags, and it should not match any of the other quotes.

Oh dear… it’s weird because regex101 does not detect the other characters. Fixed it. thanks.

It probably looked like there wasn’t a match because no characters were highlighted, but if you look at the little green box above the pattern, it says “1 match”. That said, using the Unit Tests in Regex101 will be more helpful with FCC regex challenges.

Look here: https://regex101.com/r/R492zO/1/tests