Skip to content

Commit

Permalink
fix: use fullmatch for regex
Browse files Browse the repository at this point in the history
Fixes #320
  • Loading branch information
mj-will committed Aug 1, 2023
1 parent 0d65b2d commit da02c61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nessai/proposal/flowproposal.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,9 @@ def configure_reparameterisations(self, reparameterisations):
matches = []
for pattern in patterns:
r = re.compile(pattern)
matches += list(filter(r.match, self.model.names))
matches += list(
filter(r.fullmatch, self.model.names)
)
default_config["parameters"] = matches
else:
logger.warning(
Expand Down

0 comments on commit da02c61

Please sign in to comment.