mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
fix: update regex pattern to use word boundary instead of word character
This commit is contained in:
parent
d535035bdd
commit
378c67d51f
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ def watch_source_files(
|
|||
content = f.read()
|
||||
import re
|
||||
|
||||
return bool(re.search(r"(?:^|\n)(?:#|//) *ai\w", content, re.IGNORECASE))
|
||||
return bool(re.search(r"(?:^|\n)(?:#|//) *ai\b", content, re.IGNORECASE))
|
||||
except (IOError, UnicodeDecodeError):
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue