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

bug fix

parent 1cb548a6
No related branches found
No related tags found
No related merge requests found
......@@ -40,9 +40,10 @@ def npmat_truncate_cols(mat, max_cols):
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.-':
break
else:
first_illegal_char_index = i + 1
return s[:first_illegal_char_index]
def stoi(s):
......
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