mirror of https://github.com/fmartingr/iosfu.git
10 lines
136 B
Python
10 lines
136 B
Python
|
import re
|
||
|
|
||
|
|
||
|
def slugify(string):
|
||
|
"""
|
||
|
Slugify strings
|
||
|
"""
|
||
|
string = string.lower()
|
||
|
return re.sub(r'\W+', '-', string)
|