From 92208f7c23dc60eec8eb42880114c257078e2a6f Mon Sep 17 00:00:00 2001
From: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Date: Wed, 6 Mar 2019 00:05:52 -0800
Subject: [PATCH] [Fix] Modified regex to allow spaces in one of the tests for
challenge Apply a Style Until a Condition is Met with @while (#35100)
* fix: modified regex to allow spaces
* fix: added additional \s* after 1
Co-Authored-By: RandellDawson <5313213+RandellDawson@users.noreply.github.com>
---
...apply-a-style-until-a-condition-is-met-with-while.english.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/curriculum/challenges/english/03-front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while.english.md b/curriculum/challenges/english/03-front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while.english.md
index bd2096f351..d0a555d43c 100644
--- a/curriculum/challenges/english/03-front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while.english.md
+++ b/curriculum/challenges/english/03-front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while.english.md
@@ -29,7 +29,7 @@ tests:
- text: Your code should set an index variable to 1 to start.
testString: assert(code.match(/\$.*:\s*?1;/gi), 'Your code should set an index variable to 1 to start.');
- text: Your code should increment the counter variable.
- testString: assert(code.match(/\$(.*):\s*?\$\1\s*?\+\s*?1;/gi), 'Your code should increment the counter variable.');
+ testString: assert(code.match(/\$(.*)\s*?:\s*\$\1\s*\+\s*1\s*;/gi), 'Your code should increment the counter variable.');
- text: Your .text-1
class should have a font-size
of 5px.
testString: assert($('.text-1').css('font-size') == '5px', 'Your .text-1
class should have a font-size
of 5px.');
- text: Your .text-2
class should have a font-size
of 10px.