Skip to content

Commit

Permalink
Made cell_method pattern matching more lenient w.r.t. space after c…
Browse files Browse the repository at this point in the history
…olon separator
  • Loading branch information
ukmo-ccbunney committed Jul 29, 2024
1 parent 60a2ceb commit c7fc92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/iris/fileformats/_nc_load_rules/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@
_CM_INTERVAL = "interval"
_CM_METHOD = "method"
_CM_NAME = "name"
_CM_PARSE_NAME = re.compile(r"([\w_]+\s*?:\s+)+")
_CM_PARSE_NAME = re.compile(r"([\w_]+\s*?:\s?)+")
_CM_PARSE = re.compile(
r"""
(?P<name>([\w_]+\s*?:\s+)+)
(?P<name>([\w_]+\s*?:\s?)+)
(?P<method>[\w_\s]+(?![\w_]*\s*?:))\s*
(?:
\(\s*
Expand Down

0 comments on commit c7fc92a

Please sign in to comment.