Fixed bad capture group in regex (#37575)
This commit is contained in:
parent
85e7fe45d5
commit
c935d21f84
@ -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));
|
||||
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user