Skip to content

Commit

Permalink
Value returned by NISName corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
rnebot committed Apr 16, 2021
1 parent b267648 commit dd42592
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nexinfosys/command_generators/parser_ast_evaluators.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ def get_nis_name(original_name):
"""

prefix = original_name[0] if original_name[0].isalpha() else "id_"
remainder = original_name[1:] if original_name[0].isalpha() else original_name

return prefix + re.sub("[^0-9a-zA-Z_]+", "_", original_name)
return prefix + re.sub("[^0-9a-zA-Z_]+", "_", remainder)


def lcia_method(indicator: str, method: str=None, horizon: str=None,
Expand Down

0 comments on commit dd42592

Please sign in to comment.