regex-ise funny lessons

This commit is contained in:
Shaun Hamilton
2021-12-20 21:02:01 +00:00
parent 5a4261d39f
commit 1b93de961a
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ First, in the `.red` CSS rule, set the `background` property to `linear-gradient
Your `.red` CSS rule should have a `background` property with the value `linear-gradient(90deg)`.
```js
assert.equal(new __helpers.CSSHelp(document).getStyle('.red').getPropVal('background', true), 'linear-gradient(90deg)');
assert.match(__helpers.removeWhiteSpace(code), /\.red\{.*?background:linear-gradient\(90deg\)/);
```
# --seed--

View File

@@ -16,7 +16,7 @@ In the `linear-gradient` function, use the `rgb` function to set the first color
Your `.red` CSS rule should have a `background` property with the value `linear-gradient(90deg, rgb(255, 0, 0))`.
```js
assert.equal(new __helpers.CSSHelp(document).getStyle('.red').getPropVal('background', true), 'linear-gradient(90deg,rgb(255,0,0))');
assert.match(__helpers.removeWhiteSpace(code), /\.red\{.*?background:linear-gradient\(90deg,rgb\(255,0,0\)\)/);
```
# --seed--