diff options
Diffstat (limited to 'abrechenbarkeit.lua')
-rwxr-xr-x | abrechenbarkeit.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua index 032e10d..cb9f30e 100755 --- a/abrechenbarkeit.lua +++ b/abrechenbarkeit.lua @@ -29,8 +29,8 @@ local matchers = { comment_opt = "([%w_ -]*)", barcode = "([%w_-]+)", barcode_opt = "([%w_-]*)", - name = "([%w_ -]+)", - name_opt = "([%w_ -]*)", + name = "([%w%_% %-%(%)]+)", + name_opt = "([%w%_% %-%(%)]*)", } local matchers_global = (function() local s = {} @@ -432,7 +432,10 @@ local function r_transaction_post() end local time = os.time() log:write(string.format("%d,%s,%s,%d,%s,%s,%s\n", - time, user_src, user_dst, amount, pname or "", pcount or "", comment)) + time, user_src, user_dst, amount, + pcode and (pcode .. (pname and " (" .. pname .. ")" or "")) or (pname or ""), + pcount or "", + comment)) log:flush() log:close() return format([[ |