From ec359e7749470753819da19fb8f68c3bd47b42f9 Mon Sep 17 00:00:00 2001 From: Ayushi Jain Date: Tue, 31 Jan 2017 15:17:01 -0500 Subject: [PATCH] Fix spacing issue in jquery challenge --- challenges/03-front-end-libraries/jquery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/03-front-end-libraries/jquery.json b/challenges/03-front-end-libraries/jquery.json index f0b18caa17..60316bf47a 100644 --- a/challenges/03-front-end-libraries/jquery.json +++ b/challenges/03-front-end-libraries/jquery.json @@ -1159,7 +1159,7 @@ ], "tests": [ "assert($(\"#left-well\").css(\"background-color\") === 'red' || $(\"#left-well\").css(\"background-color\") === 'rgb(255, 0, 0)' || $(\"#left-well\").css(\"background-color\").toLowerCase() === '#ff0000' || $(\"#left-well\").css(\"background-color\").toLowerCase() === '#f00', 'message: Your left-well element should have a red background.');", - "assert(code.match(/\\.parent\\s*\\(\\)\\s*\\.css/g), 'message: You should use the .parent() function to modify this element.');", + "assert(code.match(/\\.parent\\s*\\(\\s*\\)\\s*\\.css/g), 'message: You should use the .parent() function to modify this element.');", "assert(code.match(/\\$\\s*?\\(\\s*?(?:'|\")\\s*?#target1\\s*?(?:'|\")\\s*?\\)\\s*?\\.parent/gi), 'message: The .parent() method should be called on the #target1 element.');", "assert(code.match(/
/g), 'message: Only use jQuery to add these classes to the element.');" ],