From 14884ef2cc4dad965b19bfa7ecf89b23b42fef8f Mon Sep 17 00:00:00 2001 From: Peter Van Dyken Date: Sat, 17 Feb 2024 15:58:30 -0500 Subject: [PATCH] Fix mistake in regex code --- snakebids/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snakebids/cli.py b/snakebids/cli.py index e6e4d676..ac4ce348 100644 --- a/snakebids/cli.py +++ b/snakebids/cli.py @@ -48,7 +48,7 @@ def __call__( key = pair value = None if ":" in key: - key, spec = cast("tuple[str, str]", pair.split(":", 1)) + key, spec = cast("tuple[str, str]", key.split(":", 1)) spec = spec.lower() if spec == "optional": value = OptionalFilter