Skip to content

Commit

Permalink
regex refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
SZonkil committed Dec 10, 2024
1 parent 15241ed commit d099797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sio3pack/packages/sinolpack/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def get_model_solution_regex(self):
Returns the regex used to determine model solutions.
"""
extensions = self.get_submittable_extensions()
return rf"^{self.short_name}[0-9]*([bs]?)[0-9]*(_.*)?\.(" + "|".join(extensions) + ")"
return rf"^{self.short_name}[0-9]*([bs]?)[0-9]*(_.*)?\.({"|".join(extensions)})"

def _get_model_solutions(self) -> list[tuple[ModelSolutionKind, LocalFile]]:
"""
Expand Down

0 comments on commit d099797

Please sign in to comment.