Skip to content
Snippets Groups Projects
Commit 542cdb7d authored by Recolic Keghart's avatar Recolic Keghart
Browse files

allow .- in id

parent 4c0502c1
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment