From: Olav Bakke Svendsen Date: Fri, 27 Oct 2023 06:34:53 +0000 (+0200) Subject: Matching entire number in shorten X-Git-Tag: skystone~25 X-Git-Url: http://git.olavbs.no/?a=commitdiff_plain;h=272ba00ac85aae367b4474c2e8f2a12c74a0340a;p=cc.git Matching entire number in shorten --- diff --git a/cobble-loader.lua b/cobble-loader.lua index 75e37da..6dd2b57 100644 --- a/cobble-loader.lua +++ b/cobble-loader.lua @@ -19,7 +19,7 @@ local args = {...} local debug = function(...) if print_debug or args[1] == "debug" then print(...) end end -local shorten = function(address) return string.match(address, "%d$") end +local shorten = function(address) return string.match(address, "%d*$") end local outputs = {} local inputs = {}