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

allow dot in id string

parent 0c83b791
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ def npmat_truncate_cols(mat, max_cols): ...@@ -40,7 +40,7 @@ def npmat_truncate_cols(mat, max_cols):
def get_id_prefix_from_string(s): def get_id_prefix_from_string(s):
first_illegal_char_index = 0 first_illegal_char_index = 0
for i, c in enumerate(s): for i, c in enumerate(s):
if c not in 'QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm-': if c not in 'QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm-.':
break break
else: else:
first_illegal_char_index = i + 1 first_illegal_char_index = i + 1
......
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