From a6a34322c601bab4a6a4f62458f52b00841b436b Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Sat, 25 Aug 2018 08:44:49 +0400 Subject: [PATCH 1/2] fix(challenges): Update test to include whitespace ISSUES CLOSED: #271 --- challenges/01-responsive-web-design/responsive-web-design.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-responsive-web-design/responsive-web-design.json b/challenges/01-responsive-web-design/responsive-web-design.json index 616aacfce..6b5c6b1b6 100644 --- a/challenges/01-responsive-web-design/responsive-web-design.json +++ b/challenges/01-responsive-web-design/responsive-web-design.json @@ -25,7 +25,7 @@ }, { "text": "Declare a @media query for devices with a height less than or equal to 800px.", - "testString": "assert(code.match(/@media\\s?\\(max-height:\\s*?800px\\)/g), 'Declare a @media query for devices with a height less than or equal to 800px.');" + "testString": "assert(code.match(/@media\\s*?\\(\\s*?max-height:\\s*?800px\\s*?\\)/g), 'Declare a @media query for devices with a height less than or equal to 800px.');" } ], "releasedOn": "Feb 17, 2017", From 87bf1b43cbc37599a0b1980118d1f1a62c7d98af Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Sat, 25 Aug 2018 17:47:41 +0400 Subject: [PATCH 2/2] fix(challenges): Updated regex for test --- challenges/01-responsive-web-design/responsive-web-design.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-responsive-web-design/responsive-web-design.json b/challenges/01-responsive-web-design/responsive-web-design.json index 6b5c6b1b6..6dd38b419 100644 --- a/challenges/01-responsive-web-design/responsive-web-design.json +++ b/challenges/01-responsive-web-design/responsive-web-design.json @@ -25,7 +25,7 @@ }, { "text": "Declare a @media query for devices with a height less than or equal to 800px.", - "testString": "assert(code.match(/@media\\s*?\\(\\s*?max-height:\\s*?800px\\s*?\\)/g), 'Declare a @media query for devices with a height less than or equal to 800px.');" + "testString": "assert(code.match(/@media\\s*?\\(\\s*?max-height\\s*?:\\s*?800px\\s*?\\)/g), 'Declare a @media query for devices with a height less than or equal to 800px.');" } ], "releasedOn": "Feb 17, 2017",