Merge pull request #3479 from clockback/fix-default-slug-regex-substitutions

This commit is contained in:
Justin Mayer 2025-07-05 07:45:13 +02:00 committed by GitHub
commit 0e358c611c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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