change space replacment character from - to _

This commit is contained in:
Puyodead1 2021-06-28 14:19:16 -04:00
parent 6d0d3edf78
commit 63fb7b4486

View File

@ -36,7 +36,7 @@ def slugify(s,
lower=True,
spaces=False,
only_ascii=False,
space_replacement="-"):
space_replacement="_"):
"""
Creates a unicode slug for given string with several options.
L and N signify letter/number.
@ -133,4 +133,4 @@ def sanitize(title):
ok = re.compile(r'[^\\/:*?"<>]')
_title = "".join(x if ok.match(x) else "_" for x in _temp)
return _title
return _title