Allow closing brackets on the same line
This commit is contained in:
@ -418,10 +418,10 @@
|
||||
"</div>"
|
||||
],
|
||||
"tests": [
|
||||
"assert(!code.match(/e\"\\);/g) && !code.match(/t\"\\);/g), 'message: Delete all three of your jQuery functions from your <code>document ready function</code>.');",
|
||||
"assert(code.match(/\\{\\s*\\}\\);/g), 'message: Delete all three of your jQuery functions from your <code>document ready function</code>.');",
|
||||
"assert(code.match(/<script>/g), 'message: Leave your <code>script</code> element intact.');",
|
||||
"assert(code.match(/\\$\\(document\\)\\.ready\\(function\\(\\)\\s?\\{/g), 'message: Leave your <code>$(document).ready(function() {</code> to the beginning of your <code>script</code> element.');",
|
||||
"assert(code.match(/\\n\\s+?\\}\\);/g), 'message: Leave your \"document ready function\" closing <code>})</code> intact.');",
|
||||
"assert(code.match(/.*\\s*\\}\\);/g), 'message: Leave your \"document ready function\" closing <code>})</code> intact.');",
|
||||
"assert(code.match(/<\\/script>/g) && code.match(/<script/g) && code.match(/<\\/script>/g).length === code.match(/<script/g).length, 'message: Leave your <code>script</code> element closing tag intact.');"
|
||||
],
|
||||
"type": "waypoint",
|
||||
|
Reference in New Issue
Block a user