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