aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-11-05 01:54:30 +0100
committermetamuffin <metamuffin@disroot.org>2024-11-05 01:54:30 +0100
commit3badf6785181e03cf430f523c01e717b84e920e5 (patch)
treee6fe5f8af6febda93e5919ecf807c9d99c331c48
parentbbbcc3e1d50aa686365140597bed29468c6f88c7 (diff)
downloadabrechenbarkeit-3badf6785181e03cf430f523c01e717b84e920e5.tar
abrechenbarkeit-3badf6785181e03cf430f523c01e717b84e920e5.tar.bz2
abrechenbarkeit-3badf6785181e03cf430f523c01e717b84e920e5.tar.zst
fix problems caused by weblates spacing
-rwxr-xr-xabrechenbarkeit.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua
index be60a18..e210fed 100755
--- a/abrechenbarkeit.lua
+++ b/abrechenbarkeit.lua
@@ -93,7 +93,7 @@ local function load_translations(langs)
if file ~= nil then
for l in file:lines("l") do
if l ~= "" then
- local key, value = string.match(l, "^([^=]+)=([^=]*)")
+ local key, value = string.match(l, "^([^=%s]+)%s?=%s?([^=]*)")
if key ~= nil and value ~= nil then
t["+" .. key] = value
end