From 25ea07eda6f47afc067f6d9039c9d4386f7edd86 Mon Sep 17 00:00:00 2001 From: Josh Alling Date: Tue, 21 Aug 2018 07:28:17 -0600 Subject: [PATCH] fix(challenges): fix flex direction row regex ISSUES CLOSED: #260 --- challenges/01-responsive-web-design/css-flexbox.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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": [