docs[community]: Fix raw string in docstring (#26350)

Fixes #26212: replaced the raw string with backslashes. Alternative:
raw-stringif the full docstring.

---------

Co-authored-by: Erick Friis <erickfriis@gmail.com>
This commit is contained in:
Tibor Reiss 2024-09-19 06:18:56 +02:00 committed by GitHub
parent 8fb643a6e8
commit 85caaa773f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -227,7 +227,7 @@ class RecursiveUrlLoader(BaseLoader):
"https://docs.python.org/3.9/", "https://docs.python.org/3.9/",
prevent_outside=True, prevent_outside=True,
base_url="https://docs.python.org", base_url="https://docs.python.org",
link_regex=r'<a\s+(?:[^>]*?\s+)?href="([^"]*(?=index)[^"]*)"', link_regex=r'<a\\s+(?:[^>]*?\\s+)?href="([^"]*(?=index)[^"]*)"',
exclude_dirs=['https://docs.python.org/3.9/faq'] exclude_dirs=['https://docs.python.org/3.9/faq']
) )
docs = loader.load() docs = loader.load()