projects
/
cc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43b29dc
)
Pattern matching error
author
Olav Bakke Svendsen
<mail@olavbs.no>
Tue, 10 Oct 2023 15:18:09 +0000
(17:18 +0200)
committer
Olav Bakke Svendsen
<mail@olavbs.no>
Tue, 10 Oct 2023 15:18:09 +0000
(17:18 +0200)
steam/simple-coal-feeder.lua
patch
|
blob
|
history
diff --git
a/steam/simple-coal-feeder.lua
b/steam/simple-coal-feeder.lua
index cba52499fa75f54598cafd288d7a258e55a68c55..f27c954c1cff3bd513975ae32376dfd3c715f569 100644
(file)
--- 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