fix: ensure consistent handling of "ai!" comment detection

This commit is contained in:
Paul Gauthier 2024-12-02 07:26:51 -08:00 committed by Paul Gauthier (aider)
parent 25e258e26a
commit 5b2bd90071

View file

@ -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: