From 4134847a147661045d1ac161acd1860702635ad4 Mon Sep 17 00:00:00 2001 From: Priya Ranjan Singh Date: Sun, 5 Jun 2016 22:37:22 +0530 Subject: [PATCH] modify regex to match jquery selector for spaces --- .../01-front-end-development-certification/jquery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/jquery.json b/seed/challenges/01-front-end-development-certification/jquery.json index d78d273b7e..a3a15489c5 100644 --- a/seed/challenges/01-front-end-development-certification/jquery.json +++ b/seed/challenges/01-front-end-development-certification/jquery.json @@ -254,7 +254,7 @@ ], "tests": [ "assert($(\"#target3\").hasClass(\"animated\"), 'message: Select the button element with the id of target3 and use the jQuery addClass() function to give it the class of animated.');", - "assert(($(\"#target3\").hasClass(\"fadeOut\") || $(\"#target3\").hasClass(\"fadeout\")) && code.match(/\\$\\(.#target3.\\)/g), 'message: Target the element with the id target3 and use the jQuery addClass() function to give it the class fadeOut.');", + "assert(($(\"#target3\").hasClass(\"fadeOut\") || $(\"#target3\").hasClass(\"fadeout\")) && code.match(/\\$\\(\\s*.#target3.\\s*\\)/g), 'message: Target the element with the id target3 and use the jQuery addClass() function to give it the class fadeOut.');", "assert(!code.match(/class.*animated/g), 'message: Only use jQuery to add these classes to the element.');" ], "type": "waypoint",