mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix bug in Conf file parser
This commit is contained in:
parent
1e440d4523
commit
46b7c38d59
@ -114,7 +114,7 @@ def parseConf(string):
|
||||
for line in string.split("\n"):
|
||||
idx = line.find("=")
|
||||
if idx > 0:
|
||||
key = line[:idx-1].strip()
|
||||
key = line[:idx].strip()
|
||||
value = line[idx+1:].strip()
|
||||
retval[key] = value
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user