fix(challenges): fix flex direction row regex

ISSUES CLOSED: #260
pull/18182/head
Josh Alling 2018-08-21 07:28:17 -06:00 committed by Kristofer Koishigawa
parent 6e42f53dde
commit 25ea07eda6
1 changed files with 2 additions and 2 deletions

View File

@ -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": [