mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
fix: Correct ai comment regex to match ai? and ai!
This commit is contained in:
parent
a6ee3ce07f
commit
96086f12c6
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class FileWatcher:
|
||||||
"""Watches source files for changes and AI comments"""
|
"""Watches source files for changes and AI comments"""
|
||||||
|
|
||||||
# Compiled regex pattern for AI comments
|
# Compiled regex pattern for AI comments
|
||||||
ai_comment_pattern = re.compile(r"(?:#|//|--) *(ai\b.*|ai\b.*|.*\bai!?) *$", re.IGNORECASE)
|
ai_comment_pattern = re.compile(r"(?:#|//|--) *(ai\b.*|ai\b.*|.*\bai[?!]?) *$", re.IGNORECASE)
|
||||||
|
|
||||||
def __init__(self, coder, gitignores=None, verbose=False, analytics=None):
|
def __init__(self, coder, gitignores=None, verbose=False, analytics=None):
|
||||||
self.coder = coder
|
self.coder = coder
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue