From a329eec0a8f12aa975413f29b105981b9862caf3 Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Fri, 23 Apr 2021 09:24:50 -0500 Subject: [PATCH] fix(curriculum): sanitize css comments on typography lesson (#41902) --- .../make-typography-responsive.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/responsive-web-design-principles/make-typography-responsive.md b/curriculum/challenges/english/01-responsive-web-design/responsive-web-design-principles/make-typography-responsive.md index 16dbc96023..bf80e0c75e 100644 --- a/curriculum/challenges/english/01-responsive-web-design/responsive-web-design-principles/make-typography-responsive.md +++ b/curriculum/challenges/english/01-responsive-web-design/responsive-web-design-principles/make-typography-responsive.md @@ -30,13 +30,21 @@ Set the `width` of the `h2` tag to 80% of the viewport's width and the `width` o Your `h2` tag should have a `width` of 80vw. ```js -assert(code.match(/h2\s*?{\s*?width:\s*?80vw;\s*?}/g)); +assert( + __helpers + .removeCssComments(code) + .match(/h2\s*?{\s*?width:\s*?80vw;\s*?}/g) +); ``` Your `p` tag should have a `width` of 75vmin. ```js -assert(code.match(/p\s*?{\s*?width:\s*?75vmin;\s*?}/g)); +assert( + __helpers + .removeCssComments(code) + .match(/p\s*?{\s*?width:\s*?75vmin;\s*?}/g) +); ``` # --seed--