From 2fc82b7c1a5ab96ca42f3c6efcbc932660ffdb9f Mon Sep 17 00:00:00 2001 From: Olav Bakke Svendsen Date: Tue, 10 Oct 2023 17:18:09 +0200 Subject: [PATCH] Pattern matching error --- steam/simple-coal-feeder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2