Skip to content

Commit

Permalink
Group parts of the regex together to make the intended operator prece…
Browse files Browse the repository at this point in the history
…dence explicit.
  • Loading branch information
zacharyburnett committed May 20, 2024
1 parent 2d7c93b commit f4ff594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crds/jwst/locate.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def match_context_key(key):

# =======================================================================

REF_EXT_RE = re.compile(r"\.fits|\.r\dh$")
REF_EXT_RE = re.compile(r"\.(fits|r\dh)$")

@utils.cached
def get_file_properties(filename):
Expand Down
2 changes: 1 addition & 1 deletion crds/tobs/locate.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_cross_strapped_pairs(header):

# =======================================================================

REF_EXT_RE = re.compile(r"\.fits|\.r\dh$")
REF_EXT_RE = re.compile(r"\.(fits|r\dh)$")

def get_file_properties(filename):
"""Figure out (instrument, filekind, serial) based on `filename` which
Expand Down

0 comments on commit f4ff594

Please sign in to comment.