fix regex

This commit is contained in:
mstillman9 2020-04-13 16:31:54 -04:00 committed by Ahmad Abdolsaheb
parent aa1acbe68f
commit 1f1c58ae18

View File

@ -30,7 +30,7 @@ In the <code>penguin</code> class, create a variable name <code>--penguin-skin</
```yml
tests:
- text: <code>penguin</code> class should declare the <code>--penguin-skin</code> variable and assign it to <code>gray</code>.
testString: assert(code.match(/.penguin\s*?{[\s\S]*--penguin-skin\s*?:\s*?gray\s*?;[\s\S]*}/gi));
testString: assert(code.match(/\.penguin\s*\{[^{}]*?--penguin-skin\s*:\s*gr[ae]y\s*;[^{}]*?\}/gi));
```