diff --git a/seed/challenges/01-front-end-development-certification/jquery.json b/seed/challenges/01-front-end-development-certification/jquery.json index 2ef3e015c8..6b8b2ef4ce 100644 --- a/seed/challenges/01-front-end-development-certification/jquery.json +++ b/seed/challenges/01-front-end-development-certification/jquery.json @@ -781,7 +781,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\\(\\)\\.css/g), 'message: You should use the .parent() function to modify this element.');", + "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(/
/g), 'message: Only use jQuery to add these classes to the element.');" ],