mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Extend docstring
We want to hint at the location of our default set of substitutions. This should allow easier reuse for plugin authors who need to access this utility as well. Closes #2845
This commit is contained in:
parent
57c5296a44
commit
fa31a7e279
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