From d4d346e6cb68abdf0117eb834fecb1af7d54d17a Mon Sep 17 00:00:00 2001 From: Peter Mosmans Date: Mon, 13 Jun 2016 19:43:43 +1000 Subject: [PATCH] remove characters from title Note that this should be a whitelist of characters instead of a blacklist approach --- scripts/gitlab-to-pentext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gitlab-to-pentext.py b/scripts/gitlab-to-pentext.py index 63ceb47..5536f62 100644 --- a/scripts/gitlab-to-pentext.py +++ b/scripts/gitlab-to-pentext.py @@ -244,7 +244,7 @@ def valid_filename(filename): """ valid_filename = '' for char in filename.strip(): - if char in [':', '/', '.', '\\', ' ', '[', ']', '(', ')']: + if char in [':', '/', '.', '\\', ' ', '[', ']', '(', ')', '\'']: if len(char) and valid_filename[-1] != '-': valid_filename += '-' else: