mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
Update context_helpers.py
This commit is contained in:
parent
387c909c9e
commit
12c6113f7e
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ def normalize_c_style_code(code: str) -> str:
|
|||
|
||||
Works for JavaScript, TypeScript, and Java.
|
||||
"""
|
||||
# go
|
||||
code = re.sub(r"//.*$", "", code, flags=re.MULTILINE)
|
||||
code = re.sub(r"/\*.*?\*/", "", code, flags=re.DOTALL)
|
||||
return " ".join(code.split())
|
||||
|
|
|
|||
Loading…
Reference in a new issue