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 | 9d12c72499fae08639f6628047a57cbb2cd837a7 (patch) | |
tree | 501b011ba7d135761bac504b2d5a8a102982d572 /serialize_lib | |
parent | ce4631dbeebe3911cd5241ade9f750063c2cc9cb (diff) | |
download | advtrains-9d12c72499fae08639f6628047a57cbb2cd837a7.tar.gz advtrains-9d12c72499fae08639f6628047a57cbb2cd837a7.tar.bz2 advtrains-9d12c72499fae08639f6628047a57cbb2cd837a7.zip |
serialize_lib: Allow empty strings in key
Diffstat (limited to 'serialize_lib')
-rw-r--r-- | serialize_lib/serialize.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serialize_lib/serialize.lua b/serialize_lib/serialize.lua index 2d7c3a0..436bf18 100644 --- a/serialize_lib/serialize.lua +++ b/serialize_lib/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.."'!") |