fix(challenges): fix flex direction row regex

ISSUES CLOSED: #260
This commit is contained in:
Josh Alling
2018-08-21 07:28:17 -06:00
committed by Kristofer Koishigawa
parent 6e42f53dde
commit 25ea07eda6

View File

@ -272,11 +272,11 @@
"tests": [ "tests": [
{ {
"text": "The <code>header</code> should have a <code>flex-direction</code> property set to row.", "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.", "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": [ "solutions": [