From d535035bdd1a5b1187ab17d9fd539443e84f7c51 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 25 Oct 2024 13:22:17 -0700 Subject: [PATCH] style: fix string quotes in regex pattern --- aider/watch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/watch.py b/aider/watch.py index 78bb42595..5d4855f49 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -101,7 +101,8 @@ def watch_source_files( with open(path_abs) as f: content = f.read() 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): return False