Merge pull request #4903 from DDaems/Fix/waypoint-style-the-html-body-element

Fix second test to only test for brackets.
This commit is contained in:
Arsen Melikyan
2015-12-03 12:25:50 +04:00

View File

@ -3407,7 +3407,7 @@
],
"tests": [
"assert($(\"body\").css(\"background-color\") === \"rgb(0, 0, 0)\", 'message: Give your <code>body</code> element the <code>background-color</code> of black.');",
"assert(code.match(/<style>\\s*body\\s*\\{\\s*background-color\\s*:\\s*black;?\\s*\\}\\s*<\\/style>/i), 'message: Make sure your CSS rule is properly formatted with both and opening and closing curly bracket.');"
"assert(code.match(/<style>\\s*body\\s*\\{\\s*background.*\\s*:\\s*.*;?\\s*\\}\\s*<\\/style>/i), 'message: Make sure your CSS rule is properly formatted with both opening and closing curly brackets.');"
],
"challengeSeed": [
"<style>",