1
0
Fork 0
forked from github/pelican

Merge pull request #2948 from ingwinlu/bugfix/#2845

Extend docstring of slugify util
This commit is contained in:
Justin Mayer 2021-11-27 07:18:54 -07:00 committed by GitHub
commit 1a321102a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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