Skip to content

Commit

Permalink
Merge pull request freeCodeCamp#13567 from hay-dee/fix/validate-inlin…
Browse files Browse the repository at this point in the history
…e-style-color

Amended regex to properly validate inline-style
  • Loading branch information
dhcodes authored Feb 24, 2017
2 parents 2123427 + 3bcb72d commit c73bb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seed/challenges/01-responsive-web-design/basic-css.json
Original file line number Diff line number Diff line change
Expand Up @@ -2967,7 +2967,7 @@
"assert($(\"h1\").hasClass(\"pink-text\"), 'message: Your <code>h1</code> element should have the class <code>pink-text</code>.');",
"assert($(\"h1\").hasClass(\"blue-text\"), 'message: Your <code>h1</code> element should have the class <code>blue-text</code>.');",
"assert($(\"h1\").attr(\"id\") === \"orange-text\", 'message: Your <code>h1</code> element should have the id of <code>orange-text</code>.');",
"assert(code.match(/<h1[\\s\\S]*?style/gi) && code.match(/<h1[\\s\\S]*?style[\\s\\S]*?color\\s*?:/gi), 'message: Give your <code>h1</code> element the inline style of <code>color&#58; white</code>.');",
"assert(code.match(/<h1[\\s\\S]*\\s+style\\s*=\\s*(?:\\'|\")\\s*(?:[\\s\\S]*;+)*\\s*color\\s*:\\s*white\\s*(?:;+[\\s\\S]*;*)*(?:\\'|\")+/gi), 'message: Give your <code>h1</code> element the inline style of <code>color&#58; white</code>.');",
"assert($(\"h1\").css(\"color\") === \"rgb(255, 255, 255)\", 'message: Your <code>h1</code> element should be white.');"
],
"type": "waypoint",
Expand Down

0 comments on commit c73bb44

Please sign in to comment.