mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Properly handle filenames starting with triple backticks
This commit is contained in:
parent
48733a315b
commit
f28504a2eb
1 changed files with 1 additions and 2 deletions
|
@ -418,8 +418,7 @@ def strip_filename(filename, fence):
|
|||
return candidate
|
||||
|
||||
if filename.startswith(triple_backticks):
|
||||
candidate = # ai!
|
||||
return
|
||||
filename = filename[len(triple_backticks):]
|
||||
|
||||
filename = filename.rstrip(":")
|
||||
filename = filename.lstrip("#")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue