Change regexes to use the pattern object directly

This commit is contained in:
Veronica Berglyd Olsen
2024-09-28 11:20:09 +02:00
parent 5c07148eb2
commit 5ed03e29f3
4 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -343,7 +343,7 @@ class DocSearch:
count = 0
capped = False
results = []
for match in re.finditer(self._regEx, text):
for match in self._regEx.finditer(text):
pos = match.start(0)
num = len(match.group(0))
lim = text[:pos].rfind("\n") + 1