mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
fix: ensure consistent handling of "ai!" comment detection
This commit is contained in:
parent
25e258e26a
commit
5b2bd90071
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ Be sure to remove all these "ai" comments from the code!
|
|||
if comment:
|
||||
line_nums.append(i)
|
||||
comments.append(comment)
|
||||
# Use the ai regex, but ensure it's "ai!" ... AI!
|
||||
if comment.strip().endswith("!"):
|
||||
has_bang = True
|
||||
if not line_nums:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue