diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/create-a-more-complex-shape-using-css-and-html.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/create-a-more-complex-shape-using-css-and-html.md index 2b90eb72d6..7574f9464d 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/create-a-more-complex-shape-using-css-and-html.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/create-a-more-complex-shape-using-css-and-html.md @@ -39,8 +39,9 @@ Finally, in the `heart::before` selector, set its `content` property to an empty The `background-color` property of the `heart::after` selector should be pink. ```js +const heartAfter = code.match(/\.heart::after\s*{[\s\S]+?[^\}]}/g)[0]; assert( - code.match(/\.heart::after\s*?{\s*?background-color\s*?:\s*?pink\s*?;/gi) + /({|;)\s*background-color\s*:\s*pink\s*(;|})/g.test(heartAfter) ); ```