mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #2948 from ingwinlu/bugfix/#2845
Extend docstring of slugify util
This commit is contained in:
commit
1a321102a1
1 changed files with 3 additions and 0 deletions
|
|
@ -230,6 +230,9 @@ def slugify(value, regex_subs=(), preserve_case=False, use_unicode=False):
|
|||
and converts spaces to hyphens.
|
||||
|
||||
Took from Django sources.
|
||||
|
||||
For a set of sensible default regex substitutions to pass to regex_subs
|
||||
look into pelican.settings.DEFAULT_CONFIG['SLUG_REGEX_SUBSTITUTIONS'].
|
||||
"""
|
||||
|
||||
import unicodedata
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue