New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes RegExp so it matches the class .blue-text #844
Conversation
@treece Thanks for the PR! The switch to regex literal should remove the regex constructor. Otherwise it looks like a code small. Either use a constructor with string arguments or use just the literal. |
@BerkeleyTrue Thanks for letting me know! I confused myself with the ECMAScript 6 changes and the TypeError object. Does my latest commit fix it? |
This looks good to me. I'll verify it works before pushing to production. |
Fixes RegExp so it matches the class .blue-text
Ref: #841
The current expression on the site now works but the dot/period isn't escaped which is causing the challenge to pass that step if any characters (except line breaks) are in front of the word "blue-text"
So to fix this I just escaped the dot/period and changed the format to literal notation.