Fix: strict Rothko painting (#46089)

* add(curriculum): step accepts type in `link`

* made it case insensitive as well

* whole regex case insensitive

* Case sensitive
pull/46119/head
Muhammed Mustafa 2022-05-23 14:20:55 +02:00 committed by GitHub
parent 6b6b5fcaaa
commit dd8e73fd6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 10 deletions

View File

@ -19,22 +19,16 @@ Your code should have a `link` element.
assert(/<link/.test(code))
```
Your `href` attribute should have the value `./styles.css`.
Your `link` element should have a `rel` attribute with the value `stylesheet`.
```js
assert(/href\s*=\s*('|")(\.\/)?styles\.css\1/.test(code));
assert.match(code, /<link.*?rel=('|"|`)stylesheet\1/)
```
Your `rel` attribute should have the value `stylesheet`.
Your `link` element should have an `href` attribute with the value `styles.css`.
```js
assert(/rel\s*=\s*('|")\s*stylesheet\s*\1/.test(code));
```
Your `link` element should have `href="./styles.css"` and `rel="stylesheet"` attributes
```js
assert(/<\s*link(\s+href\s*=\s*("|')(\.\/)?styles\.css\2\s*rel=('|")\s*stylesheet\s*\4|\s+rel\s*=\s*('|")\s*stylesheet\s*\5\s*href\s*=\s*("|')(\.\/)?styles\.css\6)\s*\/?>/.test(code));
assert.match(code, /<link.*?href=('|"|`)(\.\/)?styles\.css\1/)
```
# --seed--