Improve check for disabled tag for jQuery challenge

pull/18182/head
dhcodes 2016-09-13 08:55:23 -05:00
parent a002d5174c
commit def0bae2cc
1 changed files with 1 additions and 1 deletions

View File

@ -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,