mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Normalized file paths in the get_file_mentions
method to handle both Unix and Windows formats.
This commit is contained in:
parent
07550d6f5f
commit
55301e4b1d
1 changed files with 3 additions and 2 deletions
|
@ -1063,8 +1063,9 @@ class Coder:
|
|||
fname_to_rel_fnames = {}
|
||||
for rel_fname in addable_rel_fnames:
|
||||
normalized_rel_fname = rel_fname.replace('\\', '/')
|
||||
if normalized_rel_fname in words or rel_fname in words:
|
||||
mentioned_rel_fnames.add(str(rel_fname))
|
||||
normalized_words = set(word.replace('\\', '/') for word in words)
|
||||
if normalized_rel_fname in normalized_words:
|
||||
mentioned_rel_fnames.add(rel_fname)
|
||||
|
||||
fname = os.path.basename(rel_fname)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue