don't disrupt \_ in filenames #1158

This commit is contained in:
Paul Gauthier 2024-08-26 12:08:46 -07:00
parent 8c766f81b2
commit 4b2227c71f
4 changed files with 34 additions and 3 deletions

View file

@ -415,7 +415,9 @@ def strip_filename(filename, fence):
filename = filename.strip()
filename = filename.strip("`")
filename = filename.strip("*")
filename = filename.replace("\\_", "_")
# https://github.com/paul-gauthier/aider/issues/1158
# filename = filename.replace("\\_", "_")
return filename