diff options
author | orwell96 <orwell@bleipb.de> | 2021-01-02 21:22:45 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-01-12 13:27:27 +0100 |
commit | 19b399a01e451cd3f386bc8353f2d6d902c00d15 (patch) | |
tree | 5680e73cd29c43ad0eafe963e944bbc305836633 | |
parent | 02d845e83d7efb84216c7ac746800fd742426e06 (diff) | |
download | advtrains-19b399a01e451cd3f386bc8353f2d6d902c00d15.tar.gz advtrains-19b399a01e451cd3f386bc8353f2d6d902c00d15.tar.bz2 advtrains-19b399a01e451cd3f386bc8353f2d6d902c00d15.zip |
serialize_lib: Allow empty strings in key
-rw-r--r-- | serialize.lua | 2 |
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.."'!") |