fix(curriculum): Regex fix for Create a Variable for a Specific Area (#41501)

This commit is contained in:
Sem Bauke
2021-03-29 13:39:52 +02:00
committed by GitHub
parent 41577b818c
commit 87c9c799c6

View File

@ -23,7 +23,7 @@ The `penguin` class should reassign the `--penguin-belly` variable to `white`.
```js ```js
assert( assert(
code.match(/.penguin\s*?{[\s\S]*--penguin-belly\s*?:\s*?white\s*?;[\s\S]*}/gi) code.match(/\.penguin\s*?{[\s\S]*(?<!background-color: )--penguin-belly\s*?:\s?white\s*?;[\s\S]*}/gi)
); );
``` ```