fix: test fail if # placed in beginning of line comment (#54005)
parent
fb4db697a5
commit
ca3497b0cf
|
@ -20,7 +20,7 @@ You should comment out all the 10 lines of code inside the `convert_to_snake_cas
|
||||||
```js
|
```js
|
||||||
({
|
({
|
||||||
test: () => {
|
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 convert_to_snake_case = __helpers.python.getDef("\n" + transformedCode, "convert_to_snake_case");
|
||||||
const { function_body } = convert_to_snake_case;
|
const { function_body } = convert_to_snake_case;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue