mirror of
https://github.com/lutris/lutris.git
synced 2026-06-21 04:10:07 -04:00
Fix registry key-value parsing.
This commit is contained in:
@@ -216,11 +216,11 @@ class WineRegistryKey(object):
|
||||
self.add_meta(line)
|
||||
elif line.startswith('"'):
|
||||
try:
|
||||
key, value = re.split(re.compile(r"(?<![^\\]\\\")="), line, maxsplit=1)
|
||||
key, value = re.split(re.compile(r"(?<![^\\]\\\")\"="), line, maxsplit=1)
|
||||
except ValueError as ex:
|
||||
logger.error("Unable to parse line %s", line)
|
||||
raise
|
||||
key = key[1:-1]
|
||||
key = key[1:]
|
||||
self.subkeys[key] = value
|
||||
elif line.startswith('@'):
|
||||
k, v = line.split('=', 1)
|
||||
|
||||
Reference in New Issue
Block a user