Matching entire number in shorten
authorOlav Bakke Svendsen <mail@olavbs.no>
Fri, 27 Oct 2023 06:34:53 +0000 (08:34 +0200)
committerOlav Bakke Svendsen <mail@olavbs.no>
Fri, 27 Oct 2023 06:34:53 +0000 (08:34 +0200)
cobble-loader.lua

index 75e37dae5acae7949a96ee9497e5f6eb5d4e2385..6dd2b57d92a0c768df3d7e4212eff37850eb92a1 100644 (file)
@@ -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 = {}