From eea9aec8b80308de47dc48964871afb06cfc8ffd Mon Sep 17 00:00:00 2001 From: electro Date: Sun, 7 Apr 2024 00:32:39 -0400 Subject: [PATCH] Updated comma list's regex to only have one or more word-only prefix --- pcbdraw/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbdraw/ui.py b/pcbdraw/ui.py index da1bd04..9a17432 100755 --- a/pcbdraw/ui.py +++ b/pcbdraw/ui.py @@ -79,7 +79,7 @@ def convert(self, value: Any, param: Optional[click.Parameter], for i in reversed(range(len(values))): c = values[i] if c.count('-') == 1: # if we have a - for a range (for example R3-R9) - s_m = re.match(r'(\w*?)(\d+)-(\w*?)(\d+)$', c) + s_m = re.match(r'([a-zA-Z]+?)(\d+)-([a-zA-Z]+?)(\d+)$', c) if s_m is None: continue try: