From ca3497b0cf10fb05b1781c40663d3a02cef4a172 Mon Sep 17 00:00:00 2001 From: Tomas <63101847+Re1nGer@users.noreply.github.com> Date: Thu, 7 Mar 2024 14:11:17 +0200 Subject: [PATCH] fix: test fail if # placed in beginning of line comment (#54005) --- .../657f425dbab54e11993c80f0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f425dbab54e11993c80f0.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f425dbab54e11993c80f0.md index 6a719fd78d7..ad4cbe41f6c 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f425dbab54e11993c80f0.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/657f425dbab54e11993c80f0.md @@ -20,7 +20,7 @@ You should comment out all the 10 lines of code inside the `convert_to_snake_cas ```js ({ test: () => { - const transformedCode = code.replace(/\r/g, ""); + const transformedCode = code.replace(/\r/g, "").replace(/\n#/g, "\n #"); const convert_to_snake_case = __helpers.python.getDef("\n" + transformedCode, "convert_to_snake_case"); const { function_body } = convert_to_snake_case;