[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>
This commit is contained in:
committed by
Manish Giri
parent
3a2db4744d
commit
92208f7c23
@ -29,7 +29,7 @@ tests:
|
|||||||
- text: Your code should set an index variable to 1 to start.
|
- 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.');
|
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.
|
- 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 <code>.text-1</code> class should have a <code>font-size</code> of 5px.
|
- text: Your <code>.text-1</code> class should have a <code>font-size</code> of 5px.
|
||||||
testString: assert($('.text-1').css('font-size') == '5px', 'Your <code>.text-1</code> class should have a <code>font-size</code> of 5px.');
|
testString: assert($('.text-1').css('font-size') == '5px', 'Your <code>.text-1</code> class should have a <code>font-size</code> of 5px.');
|
||||||
- text: Your <code>.text-2</code> class should have a <code>font-size</code> of 10px.
|
- text: Your <code>.text-2</code> class should have a <code>font-size</code> of 10px.
|
||||||
|
Reference in New Issue
Block a user