From 5a347676dbe37bf5146f116e8c5eb88b182b975f Mon Sep 17 00:00:00 2001 From: Josh Alling Date: Wed, 18 Jul 2018 15:03:10 -0600 Subject: [PATCH] fix(challenges): fix regex in applied visual design challenge (#162) * fix(challenges): fix regex in applied visual design challenge ISSUES CLOSED: #161 * fix(challenges): allow whitespace inside url() ISSUES CLOSED: #161 --- challenges/01-responsive-web-design/applied-visual-design.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-responsive-web-design/applied-visual-design.json b/challenges/01-responsive-web-design/applied-visual-design.json index 5533db55b..c8dd92e7d 100644 --- a/challenges/01-responsive-web-design/applied-visual-design.json +++ b/challenges/01-responsive-web-design/applied-visual-design.json @@ -2307,7 +2307,7 @@ "text": "Your body element should have a background property set to a url() with the given link.", "testString": - "assert(code.match(/background:\\s*?url\\((\"|')https:\\/\\/i\\.imgur\\.com\\/MJAkxbh\\.png(\"|')\\)/gi), 'Your body element should have a background property set to a url() with the given link.');" + "assert(code.match(/background:\\s*?url\\(\\s*(\"|'|)https:\\/\\/i\\.imgur\\.com\\/MJAkxbh\\.png\\1\\s*\\)/gi), 'Your body element should have a background property set to a url() with the given link.');" } ], "solutions": [],