mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
Fix square bracket file name issue
This commit is contained in:
@@ -11,6 +11,9 @@ def parse_chat(chat): # -> List[Tuple[str, str]]:
|
||||
# Strip the filename of any non-allowed characters and convert / to \
|
||||
path = re.sub(r'[<>"|?*]', "", match.group(1))
|
||||
|
||||
# Remove leading and trailing brackets
|
||||
path = re.sub(r"^\[(.*)\]$", r"\1", path)
|
||||
|
||||
# Get the code
|
||||
code = match.group(2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user