Skip to content

Commit c7fc92a

Browse files
committed
Made cell_method pattern matching more lenient w.r.t. space after colon separator
1 parent 60a2ceb commit c7fc92a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/iris/fileformats/_nc_load_rules/helpers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@
202202
_CM_INTERVAL = "interval"
203203
_CM_METHOD = "method"
204204
_CM_NAME = "name"
205-
_CM_PARSE_NAME = re.compile(r"([\w_]+\s*?:\s+)+")
205+
_CM_PARSE_NAME = re.compile(r"([\w_]+\s*?:\s?)+")
206206
_CM_PARSE = re.compile(
207207
r"""
208-
(?P<name>([\w_]+\s*?:\s+)+)
208+
(?P<name>([\w_]+\s*?:\s?)+)
209209
(?P<method>[\w_\s]+(?![\w_]*\s*?:))\s*
210210
(?:
211211
\(\s*

0 commit comments

Comments
 (0)