Skip to content

Commit eba5672

Browse files
committed
allow , in python spec_ind
1 parent 7aaac6d commit eba5672

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

svdtools/patch.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ def spec_ind(spec):
194194
"""
195195
Find left and right indices of enumeration token in specification string.
196196
"""
197+
comma = spec.find(",")
198+
if comma > -1:
199+
spec = spec[:comma]
197200
li1 = spec.find("*")
198201
li2 = spec.find("?")
199202
li3 = spec.find("[")

0 commit comments

Comments
 (0)