6 lines
100 B
Python
6 lines
100 B
Python
import re
|
|
|
|
|
|
def slug_label(value: str) -> str:
|
|
return re.sub(r" +", "-", value.strip().lower())
|