From d6e47037de8d351af6ba795d2714d95793f78666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20Tlem=C3=A7ani?= <34961373+Ismailtlem@users.noreply.github.com> Date: Thu, 21 Jan 2021 05:50:44 +0100 Subject: [PATCH] fix(learn): tests of the for in issue regarding the curly braces (#40344) * fix: fix the regex of the test of the challenge * fix: fix data structure challenge * fix: fix data structure challenge * fix:fix the test regex of the challenge * fix: fix the test regex --- ...e-through-the-keys-of-an-object-with-a-for...in-statement.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/iterate-through-the-keys-of-an-object-with-a-for...in-statement.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/iterate-through-the-keys-of-an-object-with-a-for...in-statement.md index d49fbe18fc..390132b504 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/iterate-through-the-keys-of-an-object-with-a-for...in-statement.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/iterate-through-the-keys-of-an-object-with-a-for...in-statement.md @@ -49,7 +49,7 @@ The function `countOnline` should use a `for in` statement to iterate through th ```js assert( code.match( - /for\s*\(\s*(var|let|const)\s+[a-zA-Z_$]\w*\s+in\s+[a-zA-Z_$]\w*\s*\)\s*{/ + /for\s*\(\s*(var|let|const)\s+[a-zA-Z_$]\w*\s+in\s+[a-zA-Z_$]\w*\s*\)/ ) ); ```