diff --git a/scripts/gen_contents b/scripts/gen_contents index 9217b89..b344c86 100755 --- a/scripts/gen_contents +++ b/scripts/gen_contents @@ -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('`', '')