mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
Additional filename handling (#221)
This commit is contained in:
@@ -14,6 +14,12 @@ def parse_chat(chat): # -> List[Tuple[str, str]]:
|
||||
# Remove leading and trailing brackets
|
||||
path = re.sub(r"^\[(.*)\]$", r"\1", path)
|
||||
|
||||
# Remove leading and trailing backticks
|
||||
path = re.sub(r"^`(.*)`$", r"\1", path)
|
||||
|
||||
# Remove trailing ]
|
||||
path = re.sub(r"\]$", "", path)
|
||||
|
||||
# Get the code
|
||||
code = match.group(2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user