Fix option exception

This commit is contained in:
WQY\qiong
2022-11-19 00:17:41 +08:00
parent 32ade1ed5f
commit c077598a3e

View File

@@ -112,7 +112,9 @@ def inp_in_option(section: list[str]) -> ChangeSet:
continue
tokens = s.strip().split()
if tokens[0].upper() == 'QUALITY':
if tokens[0].upper() == 'PATTERN':
cs |= { 'PATTERN' : tokens[1] }
elif tokens[0].upper() == 'QUALITY':
value = tokens[1]
if len(tokens) > 2:
value += f' {tokens[2]}'