fix: recognize background-image as correct (#42738) (#42745)

* fix: recognize background-image as correct (#42738)

The page mentioned in #42738 before would not accept background-image and background, now it should.

* fix: CI build error

Co-authored-by: Ilenia <nethleen@gmail.com>

Co-authored-by: Ilenia <nethleen@gmail.com>
This commit is contained in:
Lorem Ispum
2021-07-05 06:28:49 -04:00
committed by GitHub
parent 2598306aa2
commit 28efec9e63

View File

@ -22,7 +22,7 @@ Your `body` element should have a `background` property set to a `url()` with th
```js
assert(
code.match(
/background:\s*?url\(\s*("|'|)https:\/\/cdn-media-1\.freecodecamp\.org\/imgr\/MJAkxbh\.png\1\s*\)/gi
/background(-image)?:\s*?url\(\s*("|'|)https:\/\/cdn-media-1\.freecodecamp\.org\/imgr\/MJAkxbh\.png\2\s*\)/gi
)
);
```