Source

meblog / utilities / utils.py

Full commit
1
2
3
4
5
6
7
8
import re

def construct_keyname(param):
    # clean non aplhanumeric 
    param = re.sub('[^\w\s]', '', param)
    
    # replace space with dash
    return param.replace(' ','-')