From 34077ccd68fdb2dcc3bb9895428db2d75c98820d Mon Sep 17 00:00:00 2001 From: Venketesh Mahapatra Date: Sun, 14 Feb 2016 02:53:58 +0530 Subject: [PATCH] Updated the regex updated the rgex because "Target the Parent of an Element Using jQuery" challenge was not accepting valid jquery closes #6955 --- .../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 0f94fcf7f86..4d79fec7c27 100644 --- a/seed/challenges/01-front-end-development-certification/jquery.json +++ b/seed/challenges/01-front-end-development-certification/jquery.json @@ -821,7 +821,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(/\\$\\s*?\\(\\s*?(?:'|\")\\s*?#target1\\s*?(?:'|\")\\s*?\\)\\.parent/gi), 'message: The .parent() method should be called on the #target1 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.');" ], "type": "waypoint",