We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c2d0dd + 0cb9a88 commit 0043769Copy full SHA for 0043769
lib/dtutils/string.lua
@@ -994,7 +994,7 @@ local function treat(var_string)
994
log.msg(log.info, "ret_val is " .. ret_val)
995
996
elseif string.match(var_string, "SEQUENCE%[") then
997
- local start, width = string.match(var_string, "(%d+),(%d)")
+ local width, start = string.match(var_string, "(%d+),(%d)")
998
local seq_val = tonumber(substitutes[var])
999
local pat = "%0" .. width .. "d"
1000
substitutes[var_string] = string.format(pat, start + (seq_val - 1))
0 commit comments