diff --git a/challenges/01-responsive-web-design/css-flexbox.json b/challenges/01-responsive-web-design/css-flexbox.json index f5a81b882c..12085d0838 100644 --- a/challenges/01-responsive-web-design/css-flexbox.json +++ b/challenges/01-responsive-web-design/css-flexbox.json @@ -272,11 +272,11 @@ "tests": [ { "text": "The header should have a flex-direction property set to row.", - "testString": "assert(code.match(/header\\s*?{\\s*?.*?\\s*?.*?\\s*?flex-direction:\\s*?row;/g), 'The header should have a flex-direction property set to row.');" + "testString": "assert(code.match(/header\\s*?{[^}]*?flex-direction:\\s*?row;/g), 'The header should have a flex-direction property set to row.');" }, { "text": "The footer should have a flex-direction property set to row.", - "testString": "assert(code.match(/footer\\s*?{\\s*?.*?\\s*?.*?\\s*?flex-direction:\\s*?row;/g), 'The footer should have a flex-direction property set to row.');" + "testString": "assert(code.match(/footer\\s*?{[^}]*?flex-direction:\\s*?row;/g), 'The footer should have a flex-direction property set to row.');" } ], "solutions": [