replace standard library 're' uses with 'util.re()'

This commit is contained in:
Mike Fährmann
2025-06-06 12:26:21 +02:00
parent e1f03a5a93
commit b5c88b3d3e
45 changed files with 143 additions and 220 deletions

View File

@@ -9,8 +9,7 @@
"""Recursive extractor"""
from .common import Extractor, Message
from .. import text
import re
from .. import text, util
class RecursiveExtractor(Extractor):
@@ -28,5 +27,5 @@ class RecursiveExtractor(Extractor):
else:
page = self.request(text.ensure_http_scheme(url)).text
for match in re.finditer(r"https?://[^\s\"']+", page):
for match in util.re(r"https?://[^\s\"']+").finditer(page):
yield Message.Queue, match.group(0), {}