Skip to content

Commit

Permalink
Fixed adding double quotes instead of single
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Apr 11, 2022
1 parent 185967e commit 3544a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyenzyme/enzymeml/core/enzymemldocument.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ def _check_kinetic_model_ids(self, model) -> None:
name.replace("'", ""),
).id

if not bool(re.match(r"'[a-zA-Z\d]*'", name)):
if not name.startswith("'"):
name = f"'{name}'"

model.equation = model.equation.replace(name, species_id)
Expand Down

0 comments on commit 3544a03

Please sign in to comment.