Fix second test to only test for brackets

- properly detect curly brackets without countradicting the first test
result.
This commit is contained in:
Dieter Daems
2015-12-02 07:36:47 +01:00
parent ae6317bd7e
commit d9aa7bf712

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