fix: regex test for building a magezine project (#47848)

fix(curriculum) Fixed the regex that asserted wrong answer as correct as mentioned in issue #47466
pull/48705/head
Atish Shah 2022-12-10 02:24:43 +05:30 committed by GitHub
parent 2ac49cbc52
commit 834df9cc84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ assert(new __helpers.CSSHelp(document).getStyle('.quote::before'));
Your `.quote::before` selector should have a `content` property set to `'" '`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.quote::before')?.content?.match(/\\?\"\s/));
assert(new __helpers.CSSHelp(document).getStyle('.quote::before')?.content?.match(/\"\\"\s\"/));
```
You should have a `.quote::after` selector.
@ -36,7 +36,7 @@ assert(new __helpers.CSSHelp(document).getStyle('.quote::after'));
Your `.quote::after` selector should have a `content` property set to `' "'`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.quote::after')?.content?.match(/\s\\?\"/));
assert(new __helpers.CSSHelp(document).getStyle('.quote::after')?.content?.match(/\"\s\\""/));
```
# --seed--