From b2ac0e93aa09ae6db14a24586cf479c5a679b3ff Mon Sep 17 00:00:00 2001 From: Ilya Simpson Date: Sat, 7 Jun 2025 22:12:46 +1200 Subject: [PATCH] Fixing default `SLUG_REGEX_SUBSTITUTIONS` in docs. Backslashes should not have been doubled, given the defaults are raw strings. --- docs/settings.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/settings.rst b/docs/settings.rst index c7e514b1..19c7782c 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -715,10 +715,10 @@ corresponding ``*_URL`` setting as string, while others hard-code them: backward compatibility with existing URLs. The default is:: [ - (r'[^\\w\\s-]', ''), # remove non-alphabetical/whitespace/'-' chars - (r'(?u)\\A\\s*', ''), # strip leading whitespace - (r'(?u)\\s*\\Z', ''), # strip trailing whitespace - (r'[-\\s]+', '-'), # reduce multiple whitespace or '-' to single '-' + (r'[^\w\s-]', ''), # remove non-alphabetical/whitespace/'-' chars + (r'(?u)\A\s*', ''), # strip leading whitespace + (r'(?u)\s*\Z', ''), # strip trailing whitespace + (r'[-\s]+', '-'), # reduce multiple whitespace or '-' to single '-' ] .. data:: AUTHOR_REGEX_SUBSTITUTIONS