From 244f9704418b839cf3c458168a59b5f9d4a3556c Mon Sep 17 00:00:00 2001 From: Peter Mosmans Date: Mon, 3 Jul 2017 20:44:25 +1000 Subject: [PATCH] Filter backtick from filename, closes #37 --- chatops/python/gitlab-to-pentext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatops/python/gitlab-to-pentext.py b/chatops/python/gitlab-to-pentext.py index 7710b68..b615dbc 100644 --- a/chatops/python/gitlab-to-pentext.py +++ b/chatops/python/gitlab-to-pentext.py @@ -310,7 +310,7 @@ def valid_filename(filename): """ result = '' for char in filename.strip(): - if char in ['*', ':', '/', '.', '\\', ' ', '[', ']', '(', ')', '\'', '\"']: + if char in ['*', ':', '/', '.', '\\', ' ', '[', ']', '(', ')', '\'', '\"', '`']: if len(char) and not result.endswith('-'): result += '-' else: