Skip to content
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

Merged
merged 2 commits into from Jun 8, 2015
Merged

Fixes RegExp so it matches the class .blue-text #844

merged 2 commits into from Jun 8, 2015

Conversation

treece
Copy link
Contributor

@treece treece commented Jun 5, 2015

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.

@BerkeleyTrue
Copy link
Contributor

@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 BerkeleyTrue added status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. and removed confirmed labels Jun 6, 2015
@treece
Copy link
Contributor Author

treece commented Jun 6, 2015

@BerkeleyTrue Thanks for letting me know! I confused myself with the ECMAScript 6 changes and the TypeError object. Does my latest commit fix it?

@QuincyLarson
Copy link
Contributor

This looks good to me. I'll verify it works before pushing to production.

QuincyLarson pushed a commit that referenced this pull request Jun 8, 2015
Fixes RegExp so it matches the class .blue-text
@QuincyLarson QuincyLarson merged commit 198d789 into freeCodeCamp:master Jun 8, 2015
@QuincyLarson QuincyLarson removed the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label Jun 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants