From 18335b95e3a881e32a396c310deb82784e1059f8 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 24 Apr 2024 18:33:02 +0100 Subject: [PATCH] devout: strip newlines from client terms this is just to make testing with socat easier --- pkgs/devout/devout.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/devout/devout.fnl b/pkgs/devout/devout.fnl index ea2e5cb..4e5b8ca 100644 --- a/pkgs/devout/devout.fnl +++ b/pkgs/devout/devout.fnl @@ -86,7 +86,7 @@ (fn parse-terms [str] (print :terms str) - (collect [n (string.gmatch str "([^ ]+)")] + (collect [n (string.gmatch (str:gsub "\n+$" "") "([^ ]+)")] (string.match n "(.-)=(.+)"))) (fn handle-client [db client]