mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #3479 from clockback/fix-default-slug-regex-substitutions
This commit is contained in:
commit
0e358c611c
1 changed files with 4 additions and 4 deletions
|
|
@ -715,10 +715,10 @@ corresponding ``*_URL`` setting as string, while others hard-code them:
|
||||||
backward compatibility with existing URLs. The default is::
|
backward compatibility with existing URLs. The default is::
|
||||||
|
|
||||||
[
|
[
|
||||||
(r'[^\\w\\s-]', ''), # remove non-alphabetical/whitespace/'-' chars
|
(r'[^\w\s-]', ''), # remove non-alphabetical/whitespace/'-' chars
|
||||||
(r'(?u)\\A\\s*', ''), # strip leading whitespace
|
(r'(?u)\A\s*', ''), # strip leading whitespace
|
||||||
(r'(?u)\\s*\\Z', ''), # strip trailing whitespace
|
(r'(?u)\s*\Z', ''), # strip trailing whitespace
|
||||||
(r'[-\\s]+', '-'), # reduce multiple whitespace or '-' to single '-'
|
(r'[-\s]+', '-'), # reduce multiple whitespace or '-' to single '-'
|
||||||
]
|
]
|
||||||
|
|
||||||
.. data:: AUTHOR_REGEX_SUBSTITUTIONS
|
.. data:: AUTHOR_REGEX_SUBSTITUTIONS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue