From 83c99f1edf688853a47f888fd43502a0bb61a16c Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sun, 29 Nov 2015 22:37:30 +0800 Subject: [PATCH] minor update for scripts/gen_contents --- scripts/gen_contents | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('`', '')