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

Commit

Permalink
fix(challenges): allow for omitted unit after zero values
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #166
  • Loading branch information
joshalling authored and scissorsneedfoodtoo committed Jul 31, 2018
1 parent fd8c9e4 commit 45b573b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)?/gi), 'The color stop at 0 pixels should be <code>yellow</code>.');"
},
{
"text": "One color stop at 40 pixels should be <code>yellow</code>.",
Expand Down Expand Up @@ -2925,7 +2925,7 @@
"text":
"The <code>@keyframes</code> rule for <code>0%</code> should use the <code>left</code> offset of 0px.",
"testString":
"assert(code.match(/0%\\s*?{\\s*?background-color:\\s*?blue;\\s*?top:\\s*?0px;\\s*?left:\\s*?0px;\\s*?}/gi), 'The <code>@keyframes</code> rule for <code>0%</code> should use the <code>left</code> offset of 0px.');"
"assert(code.match(/0%\\s*?{\\s*?background-color:\\s*?blue;\\s*?top:\\s*?0(px)?;\\s*?left:\\s*?0(px)?;\\s*?}/gi), 'The <code>@keyframes</code> rule for <code>0%</code> should use the <code>left</code> offset of 0px.');"
},
{
"text":
Expand All @@ -2937,7 +2937,7 @@
"text":
"The <code>@keyframes</code> rule for <code>100%</code> should use the <code>left</code> offset of -25px.",
"testString":
"assert(code.match(/100%\\s*?{\\s*?background-color:\\s*?yellow;\\s*?top:\\s*?0px;\\s*?left:\\s*?-25px;\\s*?}/gi), 'The <code>@keyframes</code> rule for <code>100%</code> should use the <code>left</code> offset of -25px.');"
"assert(code.match(/100%\\s*?{\\s*?background-color:\\s*?yellow;\\s*?top:\\s*?0(px)?;\\s*?left:\\s*?-25px;\\s*?}/gi), 'The <code>@keyframes</code> rule for <code>100%</code> should use the <code>left</code> offset of -25px.');"
}
],
"solutions": [],
Expand Down

0 comments on commit 45b573b

Please sign in to comment.