fix(curriculum): Regex fix for Create a Variable for a Specific Area (#41501)
This commit is contained in:
@ -23,7 +23,7 @@ The `penguin` class should reassign the `--penguin-belly` variable to `white`.
|
||||
|
||||
```js
|
||||
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)
|
||||
);
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user