From 542cdb7d5194e68f5f36d06510f31114635553b4 Mon Sep 17 00:00:00 2001 From: Recolic Keghart <root@recolic.net> Date: Fri, 14 Feb 2020 21:02:59 -0800 Subject: [PATCH] allow .- in id --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index aa809f4..7248425 100644 --- a/utils.py +++ b/utils.py @@ -41,7 +41,7 @@ def get_id_prefix_from_string(s): first_illegal_char_index = 0 for i, c in enumerate(s.replace(' ', '')): first_illegal_char_index = i - if c not in 'QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm': + if c not in 'QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm.-': break return s[:first_illegal_char_index] -- GitLab