From 9e4e5f0f6a9bbb25cca20296d411ad890ea3d6d3 Mon Sep 17 00:00:00 2001 From: Tab Atkins-Bittner Date: Mon, 28 Oct 2024 14:51:59 -0700 Subject: [PATCH] Allow an empty type arg --- bikeshed/shorthands/oldShorthands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bikeshed/shorthands/oldShorthands.py b/bikeshed/shorthands/oldShorthands.py index b6439f5cf2..d450400bf1 100644 --- a/bikeshed/shorthands/oldShorthands.py +++ b/bikeshed/shorthands/oldShorthands.py @@ -28,7 +28,7 @@ def transformProductionPlaceholders(doc: t.SpecT) -> None: r""" ^(?:(\S*)/)? (\S+) - \s*\[([^\]]+)\]\s*$ + \s*\[([^\]]*)\]\s*$ """, re.X, )