Fixed bad capture group in regex (#37575)

This commit is contained in:
John A Maloney 2019-12-13 22:16:30 -06:00 committed by Tom
parent 85e7fe45d5
commit c935d21f84

View File

@ -27,7 +27,7 @@ tests:
- text: Your <code>red-box</code> class should have a <code>padding</code> property.
testString: assert($('.red-box').css('padding-top') != '0px' && $('.red-box').css('padding-right') != '0px' && $('.red-box').css('padding-bottom') != '0px' && $('.red-box').css('padding-left') != '0px');
- text: Your <code>red-box</code> class should give elements 1.5em of <code>padding</code>.
testString: assert(code.match(/\.red-box\s*?{(\s|.)*?padding:\s*?1\.5em/gi));
testString: assert(code.match(/\.red-box\s*?{[\s\S]*padding:\s*?1\.5em/gi));
```