Escaped dot in RegExp for the Waypoint: Override Styles with Important

pull/844/head
Charles Treece 2015-06-05 01:33:10 -04:00
parent d86c405ef1
commit 04ed850ef9
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@
"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(/\.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\".')",