minor update for scripts/gen_contents

This commit is contained in:
lilydjwg 2015-11-29 22:37:30 +08:00
parent a977a508d2
commit 83c99f1edf

View File

@ -10,7 +10,7 @@ levels = {
}
def to_id(t):
return t.lower().replace(' ', '-').replace('`', '')
return re.sub(r'[`(),]', '', t).lower().replace(' ', '-')
def to_text(t):
return t.replace('`', '')