From c935d21f8439cc44d33a88a704d0dae1b3300fe8 Mon Sep 17 00:00:00 2001 From: John A Maloney Date: Fri, 13 Dec 2019 22:16:30 -0600 Subject: [PATCH] Fixed bad capture group in regex (#37575) --- .../understand-absolute-versus-relative-units.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-css/understand-absolute-versus-relative-units.english.md b/curriculum/challenges/english/01-responsive-web-design/basic-css/understand-absolute-versus-relative-units.english.md index f7aa15fa0a..aba3b24d0e 100644 --- a/curriculum/challenges/english/01-responsive-web-design/basic-css/understand-absolute-versus-relative-units.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/basic-css/understand-absolute-versus-relative-units.english.md @@ -27,7 +27,7 @@ tests: - text: Your red-box class should have a padding property. testString: assert($('.red-box').css('padding-top') != '0px' && $('.red-box').css('padding-right') != '0px' && $('.red-box').css('padding-bottom') != '0px' && $('.red-box').css('padding-left') != '0px'); - text: Your red-box class should give elements 1.5em of padding. - testString: assert(code.match(/\.red-box\s*?{(\s|.)*?padding:\s*?1\.5em/gi)); + testString: assert(code.match(/\.red-box\s*?{[\s\S]*padding:\s*?1\.5em/gi)); ```