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

Commit

Permalink
fix(challenges): fix flex direction row regex
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #260
  • Loading branch information
joshalling authored and scissorsneedfoodtoo committed Aug 24, 2018
1 parent 6e42f53 commit 25ea07e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions challenges/01-responsive-web-design/css-flexbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@
"tests": [
{
"text": "The <code>header</code> should have a <code>flex-direction</code> property set to row.",
"testString": "assert(code.match(/header\\s*?{\\s*?.*?\\s*?.*?\\s*?flex-direction:\\s*?row;/g), 'The <code>header</code> should have a <code>flex-direction</code> property set to row.');"
"testString": "assert(code.match(/header\\s*?{[^}]*?flex-direction:\\s*?row;/g), 'The <code>header</code> should have a <code>flex-direction</code> property set to row.');"
},
{
"text": "The <code>footer</code> should have a <code>flex-direction</code> property set to row.",
"testString": "assert(code.match(/footer\\s*?{\\s*?.*?\\s*?.*?\\s*?flex-direction:\\s*?row;/g), 'The <code>footer</code> should have a <code>flex-direction</code> property set to row.');"
"testString": "assert(code.match(/footer\\s*?{[^}]*?flex-direction:\\s*?row;/g), 'The <code>footer</code> should have a <code>flex-direction</code> property set to row.');"
}
],
"solutions": [
Expand Down

0 comments on commit 25ea07e

Please sign in to comment.