From 3a47c5411fff5a5afcca5a4ab93500e3ed7cf121 Mon Sep 17 00:00:00 2001 From: Hassaan Pasha Date: Fri, 6 Mar 2020 12:14:39 +0500 Subject: [PATCH] =?UTF-8?q?fix=20(curriculum):=20made=20the=20order=20of?= =?UTF-8?q?=20the=20required=20code=20to=20be=20re=E2=80=A6=20(#38320)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> --- .../create-movement-using-css-animation.english.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/create-movement-using-css-animation.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/create-movement-using-css-animation.english.md index 9eb1fa2085..11a018cd92 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/create-movement-using-css-animation.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/create-movement-using-css-animation.english.md @@ -41,11 +41,11 @@ Add a horizontal motion to the div animation. Using the left< ```yml tests: - text: The @keyframes rule for 0% should use the left offset of 0px. - testString: assert(code.match(/0%\s*?{\s*?background-color:\s*?blue;\s*?top:\s*?0(px)?;\s*?left:\s*?0(px)?;\s*?}/gi)); + testString: assert(code.match(/[^50]0%\s*?{[\s\S]*?left:\s*?0px(;[\s\S]*?|\s*?)}/gi)); - text: The @keyframes rule for 50% should use the left offset of 25px. - testString: assert(code.match(/50%\s*?{\s*?background-color:\s*?green;\s*?top:\s*?50px;\s*?left:\s*?25px;\s*?}/gi)); + testString: assert(code.match(/50%\s*?{[\s\S]*?left:\s*?25px(;[\s\S]*?|\s*?)}/gi)); - text: The @keyframes rule for 100% should use the left offset of -25px. - testString: assert(code.match(/100%\s*?{\s*?background-color:\s*?yellow;\s*?top:\s*?0(px)?;\s*?left:\s*?-25px;\s*?}/gi)); + testString: assert(code.match(/100%\s*?{[\s\S]*?left:\s*?-25px(;[\s\S]*?|\s*?)}/gi)); ```