Skip to content

Commit

Permalink
Improve check for disabled tag for jQuery challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
dhcodes authored and mhatout committed Feb 9, 2018
1 parent 030e0cd commit f3fd0e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@
"tests": [
"assert($(\"#target1\") && $(\"#target1\").prop(\"disabled\"), 'message: Disable your <code>target1</code> 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,
Expand Down

0 comments on commit f3fd0e5

Please sign in to comment.