Merge pull request #4338 from fufesou/fix/lang.py

fix lang.py
This commit is contained in:
RustDesk 2023-05-12 09:52:39 +08:00 committed by GitHub
commit 22f71c647a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,8 +19,10 @@ def line_split(line):
if len(toks) != 2: if len(toks) != 2:
print(line) print(line)
assert(0) assert(0)
k = toks[0][2:] # Replace fixed position.
v = toks[1][:-3] # Because toks[1] may be v") or v"),
k = toks[0][toks[0].find('"') + 1:]
v = toks[1][:toks[1].rfind('"')]
return k, v return k, v