From af7a3b6bdc455e3ceb965101fa7dbe5ccc69ebe1 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 4 Sep 2025 03:34:58 +0200 Subject: [PATCH] Avoid zero-length task path steps. --- ircplom/msg_parse_expectations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircplom/msg_parse_expectations.py b/ircplom/msg_parse_expectations.py index c91ff3e..585f25b 100644 --- a/ircplom/msg_parse_expectations.py +++ b/ircplom/msg_parse_expectations.py @@ -26,7 +26,7 @@ class _Command(NamedTuple): def from_(cls, input_: str) -> Self: 'Split by first "_" into verb, path (split into steps tuple by ".").' verb, path_str = input_.split('_', maxsplit=1) - return cls(verb, tuple(path_str.split('.'))) + return cls(verb, tuple(step for step in path_str.split('.') if step)) class _MsgParseExpectation: -- 2.30.2