From 9b9c805cedb08621bd5dc58a01a6478eb7cc49a9 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 2 Aug 2023 19:53:16 +0200 Subject: Removed unneeded escapes in regexes. Special characters lose their special meaning inside sets of characters. "-" lose its special meaning if it's placed as the first or last character. Follow up to 7c6b66383da5f9a67142334cd2ed2d769739e8f1. --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index 2b37639eab..31478ae79d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -54,8 +54,8 @@ autosectionlabel_maxdepth = 2 linkcheck_ignore = [ # Special-use addresses and domain names. (RFC 6761/6890) r"^https?://(?:127\.0\.0\.1|\[::1\])(?::\d+)?/", - r"^https?://(?:[^/\.]+\.)*example\.(?:com|net|org)(?::\d+)?/", - r"^https?://(?:[^/\.]+\.)*(?:example|invalid|localhost|test)(?::\d+)?/", + r"^https?://(?:[^/.]+\.)*example\.(?:com|net|org)(?::\d+)?/", + r"^https?://(?:[^/.]+\.)*(?:example|invalid|localhost|test)(?::\d+)?/", # Pages that are inaccessible because they require authentication. r"^https://github\.com/[^/]+/[^/]+/fork", r"^https://code\.djangoproject\.com/github/login", -- cgit v1.3