Skip to content

Commit

Permalink
Fixes regex
Browse files Browse the repository at this point in the history
jasonb5 committed Apr 7, 2023
1 parent 71fbde1 commit 43b8309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CIME/XML/archive_base.py
Original file line number Diff line number Diff line change
@@ -115,9 +115,9 @@ def get_all_hist_files(self, casename, model, from_dir, suffix="", ref_case=None
for ext in extensions:
if ext.endswith("$") and has_suffix:
ext = ext[:-1]
string = model + r"\d?_?(\d{4})?\." + ext
string = model + r"\d?_?(\d{4})?\." + ext + r".*?"
if has_suffix:
string += r".*?\." + suffix + "$"
string += r"\." + suffix + "$"

logger.debug("Regex is {}".format(string))
pfile = re.compile(string)

0 comments on commit 43b8309

Please sign in to comment.