mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
style: fix string quotes in regex pattern
This commit is contained in:
parent
43790db48e
commit
d535035bdd
1 changed files with 2 additions and 1 deletions
|
@ -101,7 +101,8 @@ def watch_source_files(
|
||||||
with open(path_abs) as f:
|
with open(path_abs) as f:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
import re
|
import re
|
||||||
return bool(re.search(r'(?:^|\n)(?:#|//) *ai\w', content, re.IGNORECASE))
|
|
||||||
|
return bool(re.search(r"(?:^|\n)(?:#|//) *ai\w", content, re.IGNORECASE))
|
||||||
except (IOError, UnicodeDecodeError):
|
except (IOError, UnicodeDecodeError):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue