From 8b9e6a768634e5ecbddfbf844d3fb85c59a9acc6 Mon Sep 17 00:00:00 2001 From: Tim Pritlove Date: Sun, 18 Mar 2018 10:21:17 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20Steuers=C3=A4tze=20aus=20Kommentaren=20k?= =?UTF-8?q?orrekt=20entfernen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MoneyMonkey.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MoneyMonkey.lua b/MoneyMonkey.lua index 5566417..7710900 100644 --- a/MoneyMonkey.lua +++ b/MoneyMonkey.lua @@ -181,9 +181,10 @@ function UmsatzMetadaten (KategoriePfad, Kommentar) KommentarNeu = string.gsub(KommentarNeu, "#" .. KS .. "%s*", "") end - _, _, Text = string.find (Kommentar, "{(.+)}") + Begin, End, Text = string.find (Kommentar, "{(.+)}") if Text then Steuersatz = Text + KommentarNeu = string.sub(KommentarNeu, 1, Begin) .. string.sub(KommentarNeu, End) KommentarNeu = string.gsub(KommentarNeu, "{" .. Text .. "}%s*", "") end