fix: test fail if # placed in beginning of line comment (#54005)

pull/54017/head
Tomas 2024-03-07 14:11:17 +02:00 committed by GitHub
parent fb4db697a5
commit ca3497b0cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;