From: Olav Bakke Svendsen Date: Tue, 10 Oct 2023 15:18:09 +0000 (+0200) Subject: Pattern matching error X-Git-Tag: stable-steam~41 X-Git-Url: http://git.olavbs.no/?a=commitdiff_plain;h=2fc82b7c1a5ab96ca42f3c6efcbc932660ffdb9f;p=cc.git Pattern matching error --- diff --git a/steam/simple-coal-feeder.lua b/steam/simple-coal-feeder.lua index cba5249..f27c954 100644 --- a/steam/simple-coal-feeder.lua +++ b/steam/simple-coal-feeder.lua @@ -35,7 +35,7 @@ end local parse_command = function(str) - local cmd, a = string.match(str, "^%s*(%w+)%s*(.*)") + local cmd, a = string.match(str, "^%s*([^%s]+)%s*(.*)") local arg = string.gsub(a, "%s*$", "") return string.lower(cmd), (arg ~= '' and arg) end