From def0bae2cc2178c91289ad4e9b7d8ed716820265 Mon Sep 17 00:00:00 2001 From: dhcodes Date: Tue, 13 Sep 2016 08:55:23 -0500 Subject: [PATCH] Improve check for disabled tag for jQuery challenge --- challenges/01-front-end-development-certification/jquery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/jquery.json b/challenges/01-front-end-development-certification/jquery.json index 79bd830631..6447167e96 100644 --- a/challenges/01-front-end-development-certification/jquery.json +++ b/challenges/01-front-end-development-certification/jquery.json @@ -769,7 +769,7 @@ "tests": [ "assert($(\"#target1\") && $(\"#target1\").prop(\"disabled\"), 'message: Disable your target1 button.');", "assert($(\"#target2\") && !$(\"#target2\").prop(\"disabled\"), 'message: Do not disable any other buttons.');", - "assert(!code.match(/disabled>/g), 'message: Only use jQuery to add these classes to the element.');" + "assert(!code.match(/disabled[^<]*>/g), 'message: Only use jQuery to add these classes to the element.');" ], "type": "waypoint", "challengeType": 0,