Sync code

This commit is contained in:
Joey Wang
2023-03-22 13:14:39 +08:00
parent fe0819654b
commit a8278e50dd

View File

@@ -16,7 +16,8 @@ def _parse_v2(v2_lines: list[str]) -> dict[str, str]:
for s in v2_lines:
tokens = s.split()
if tokens[0].upper() == 'PATTERN': # can not upper id
cs_v2 |= { 'PATTERN' : tokens[1] }
value = tokens[1] if len(tokens) > 1 else ''
cs_v2 |= { 'PATTERN' : value }
elif tokens[0].upper() == 'QUALITY': # can not upper trace node
value = tokens[1]
if len(tokens) > 2: