aboutsummaryrefslogtreecommitdiff
path: root/serialize.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2021-01-02 21:22:45 +0100
committerorwell96 <orwell@bleipb.de>2021-01-12 13:27:27 +0100
commit19b399a01e451cd3f386bc8353f2d6d902c00d15 (patch)
tree5680e73cd29c43ad0eafe963e944bbc305836633 /serialize.lua
parent02d845e83d7efb84216c7ac746800fd742426e06 (diff)
downloadadvtrains-19b399a01e451cd3f386bc8353f2d6d902c00d15.tar.gz
advtrains-19b399a01e451cd3f386bc8353f2d6d902c00d15.tar.bz2
advtrains-19b399a01e451cd3f386bc8353f2d6d902c00d15.zip
serialize_lib: Allow empty strings in key
Diffstat (limited to 'serialize.lua')
-rw-r--r--serialize.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/serialize.lua b/serialize.lua
index 2d7c3a0..436bf18 100644
--- a/serialize.lua
+++ b/serialize.lua
@@ -118,7 +118,7 @@ function read_table(t, file)
-- done with this table
return
end
- ks, vs = string.match(line, "^(.+[^&]):(.+)$")
+ ks, vs = string.match(line, "^(.*[^&]):(.+)$")
if not ks or not vs then
file:close()
error("Unable to parse line: '"..line.."'!")