Skip to content

Commit

Permalink
Accept also uppercase radar-landcode
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhoey committed Aug 21, 2023
1 parent 5929767 commit 54d4d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vptstools/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def parse_file_name(file_name):
"""

name_regex = re.compile(
r".*([a-z]{2})([a-z]{3})_([a-z]*)_(\d\d\d\d)(\d\d)(\d\d)T?"
r".*([a-zA-Z]{2})([a-zA-Z]{3})_([a-z]*)_(\d\d\d\d)(\d\d)(\d\d)T?"
r"(\d\d)(\d\d)(?:Z|00)?.*\.h5"
)
match = re.match(name_regex, file_name)
Expand Down

0 comments on commit 54d4d30

Please sign in to comment.