Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

fix(challenges): allow for omitted unit after zero values #167

Conversation

joshalling
Copy link
Member

Updates the regex of a couple Applied Visual Design challenges that do not allow the user to omit the unit after a zero value.

ISSUES CLOSED: #166

@scissorsneedfoodtoo
Copy link
Contributor

@joshalling, thank you for reporting this issue and submitting a PR to fix it. This would be a welcome change!

I think I found one typo, though. Could you take a look and possibly update your PR?

@@ -2237,7 +2237,7 @@
{
"text": "The color stop at 0 pixels should be <code>yellow</code>.",
"testString":
"assert(code.match(/yellow\\s+?0px/gi), 'The color stop at 0 pixels should be <code>yellow</code>.');"
"assert(code.match(/yellow\\s+?0(px)?Z/gi), 'The color stop at 0 pixels should be <code>yellow</code>.');"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this line should be:

"assert(code.match(/yellow\\s+?0(px)?/gi), 'The color stop at 0 pixels should be <code>yellow</code>.');"

@joshalling
Copy link
Member Author

I'm out of town right now, but I will take care of this when I get back.

@scissorsneedfoodtoo
Copy link
Contributor

No problem! Please take your time.

@raisedadead raisedadead added the status: ready for QA To be applied to PR that are ready for QA. label Jul 27, 2018
@joshalling joshalling force-pushed the fix/regex-omit-unit-after-zero branch from 91a5858 to e6f422a Compare July 30, 2018 23:49
@joshalling
Copy link
Member Author

@scissorsneedfoodtoo I just amended my commit with that fix.

@scissorsneedfoodtoo scissorsneedfoodtoo merged commit 45b573b into freeCodeCamp:dev Jul 31, 2018
@scissorsneedfoodtoo
Copy link
Contributor

@joshalling, thank you for all of your hard work to improve this challenge. Just tested and everything LGTM!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: ready for QA To be applied to PR that are ready for QA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants