Skip to content
Snippets Groups Projects
Commit 0c83b791 authored by Bensong Liu's avatar Bensong Liu
Browse files

FR 20210211: Allow space character as id seperator. which reverts FR20200207

parent 03e6cf71
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ def npmat_truncate_cols(mat, max_cols): ...@@ -39,7 +39,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.replace(' ', '')): for i, c in enumerate(s):
if c not in 'QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm-': if c not in 'QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm-':
break break
else: else:
......
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