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

Commit 25ea07e

Browse files
joshallingscissorsneedfoodtoo
authored andcommitted
fix(challenges): fix flex direction row regex
ISSUES CLOSED: #260
1 parent 6e42f53 commit 25ea07e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

challenges/01-responsive-web-design/css-flexbox.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,11 @@
272272
"tests": [
273273
{
274274
"text": "The <code>header</code> should have a <code>flex-direction</code> property set to row.",
275-
"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.');"
275+
"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.');"
276276
},
277277
{
278278
"text": "The <code>footer</code> should have a <code>flex-direction</code> property set to row.",
279-
"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.');"
279+
"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.');"
280280
}
281281
],
282282
"solutions": [

0 commit comments

Comments
 (0)