Skip to content

Commit

Permalink
Merge pull request #844 from treece/treece-841
Browse files Browse the repository at this point in the history
Fixes RegExp so it matches the class .blue-text
  • Loading branch information
Quincy Larson committed Jun 8, 2015
2 parents b88533d + be63310 commit 198d789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seed_data/challenges/basic-html5-and-css.json
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,8 @@
"Now see if you can make sure the <code>h2</code> element is rendered in the color red without removing the \"blue-text\" class, doing an in-line styling, and without changing the sequence of CSS class declarations."
],
"tests": [
"assert(new RegExp('.blue-text', 'gi').test(editor), 'Create the CSS class \"blue-text\"')",
"assert(new RegExp('.urgently-red', 'gi').test(editor), 'Create the CSS class \"urgently-red\"')",
"assert(new RegExp('\\.blue-text', 'gi').test(editor), 'Create the CSS class \"blue-text\"')",
"assert(new RegExp('\\.urgently-red', 'gi').test(editor), 'Create the CSS class \"urgently-red\"')",
"assert(new RegExp('red.?!important', 'gi').test(editor), 'Add the \"!important\" declaration!')",
"assert($('h2').hasClass('blue-text'), 'Your h2 element should have the class \"blue-text\".')",
"assert($('h2').hasClass('urgently-red'), 'Your h2 element should have the class \"urgently-red\".')",
Expand Down

0 comments on commit 198d789

Please sign in to comment.