iosfu/iosfu/utils.py

10 lines
136 B
Python
Raw Normal View History

2013-11-18 17:42:25 +00:00
import re
def slugify(string):
"""
Slugify strings
"""
string = string.lower()
return re.sub(r'\W+', '-', string)