Fixing default SLUG_REGEX_SUBSTITUTIONS in docs.

Backslashes should not have been doubled, given the defaults are raw
strings.
This commit is contained in:
Ilya Simpson 2025-06-07 22:12:46 +12:00
commit b2ac0e93aa

View file

@ -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