Commit 542cdb7d authored by Recolic Keghart's avatar Recolic Keghart 🎱

allow .- in id

parent 4c0502c1
......@@ -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]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment