Fix option pattern reading

This commit is contained in:
WQY\qiong
2023-03-10 19:57:52 +08:00
parent 696bd55ead
commit 24a39aeca6

View File

@@ -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 }