Skip to content

Commit

Permalink
Updated comma list's regex to only have one or more word-only prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Electro707 committed Apr 7, 2024
1 parent d4a9df8 commit eea9aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcbdraw/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eea9aec

Please sign in to comment.