mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-18 05:27:53 +08:00
fix lang.py
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
8e58735243
commit
ca61108185
@ -19,8 +19,10 @@ def line_split(line):
|
||||
if len(toks) != 2:
|
||||
print(line)
|
||||
assert(0)
|
||||
k = toks[0][2:]
|
||||
v = toks[1][:-3]
|
||||
# Replace fixed position.
|
||||
# Because toks[1] may be v") or v"),
|
||||
k = toks[0][toks[0].find('"') + 1:]
|
||||
v = toks[1][:toks[1].rfind('"')]
|
||||
return k, v
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user