From e5e7b000bd7041a368b34659cfa33b7bb04f0eda Mon Sep 17 00:00:00 2001 From: Manish-Giri Date: Tue, 2 Aug 2016 00:41:25 +0530 Subject: [PATCH] Update regex for color check in Prioritize Styles challenge --- .../01-front-end-development-certification/html5-and-css.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/html5-and-css.json b/seed/challenges/01-front-end-development-certification/html5-and-css.json index 1d082e95ec..f7f0cc7f12 100644 --- a/seed/challenges/01-front-end-development-certification/html5-and-css.json +++ b/seed/challenges/01-front-end-development-certification/html5-and-css.json @@ -4318,7 +4318,7 @@ ], "tests": [ "assert($(\"h1\").hasClass(\"pink-text\"), 'message: Your h1 element should have the class pink-text.');", - "assert(code.match(/\\.pink-text\\s*\\{\\s*color\\s*:\\s*pink\\s*;\\s*\\}/g), 'message: Your <style> should have a pink-text CSS class with its color set to pink.');", + "assert(code.match(/\\.pink-text\\s*\\{\\s*color\\s*:\\s*.+\\s*;\\s*\\}/g), 'message: Your <style> should have a pink-text CSS class that changes the color.');", "assert($(\"h1\").css(\"color\") === \"rgb(255, 192, 203)\", 'message: Your h1 element should be pink.');" ], "type": "waypoint",