Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonreusch committed Apr 25, 2023
1 parent 5d04766 commit 1c6c468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuztf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def is_ligo_name(name) -> bool:
(e.g. S190814bv)
"""
if re.match(
r"^S|GW((\d{2}((0[13578]|1[02])(0[1-9]|[12]\d|3[01])|(0[13456789]|1[012])(0[1-9]|[12]\d|30)|02(0[1-9]|1\d|2[0-8])))|([02468][048]|[13579][26])0229)[a-z]{1,4}$",
r"^(S|GW)((\d{2}((0[13578]|1[02])(0[1-9]|[12]\d|3[01])|(0[13456789]|1[012])(0[1-9]|[12]\d|30)|02(0[1-9]|1\d|2[0-8])))|([02468][048]|[13579][26])0229)[a-z]{0,4}$",
name,
):
match = True
Expand Down

0 comments on commit 1c6c468

Please sign in to comment.