Fix option pattern reading
This commit is contained in:
@@ -22,9 +22,10 @@ def inp_in_option(section: list[str]) -> ChangeSet:
|
|||||||
|
|
||||||
tokens = s.strip().split()
|
tokens = s.strip().split()
|
||||||
if tokens[0].upper() == 'PATTERN': # can not upper id
|
if tokens[0].upper() == 'PATTERN': # can not upper id
|
||||||
cs |= { 'PATTERN' : tokens[1] }
|
value = tokens[1] if len(tokens) > 1 else ''
|
||||||
|
cs |= { 'PATTERN' : value }
|
||||||
elif tokens[0].upper() == 'QUALITY': # can not upper trace node
|
elif tokens[0].upper() == 'QUALITY': # can not upper trace node
|
||||||
value = tokens[1]
|
value = tokens[1] if len(tokens) > 1 else ''
|
||||||
if len(tokens) > 2:
|
if len(tokens) > 2:
|
||||||
value += f' {tokens[2]}'
|
value += f' {tokens[2]}'
|
||||||
cs |= { 'QUALITY' : value }
|
cs |= { 'QUALITY' : value }
|
||||||
|
|||||||
Reference in New Issue
Block a user