mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix: test fail if # placed in beginning of line comment (#54005)
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user