forked from DGNum/liminix
devout: strip newlines from client terms
this is just to make testing with socat easier
This commit is contained in:
parent
6bee2f67ac
commit
18335b95e3
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@
|
||||||
|
|
||||||
(fn parse-terms [str]
|
(fn parse-terms [str]
|
||||||
(print :terms str)
|
(print :terms str)
|
||||||
(collect [n (string.gmatch str "([^ ]+)")]
|
(collect [n (string.gmatch (str:gsub "\n+$" "") "([^ ]+)")]
|
||||||
(string.match n "(.-)=(.+)")))
|
(string.match n "(.-)=(.+)")))
|
||||||
|
|
||||||
(fn handle-client [db client]
|
(fn handle-client [db client]
|
||||||
|
|
Loading…
Reference in a new issue