fix an off-by-one error that predates me

This commit is contained in:
duncathan 2022-01-11 22:25:44 -06:00
parent 4c2eedb155
commit aa32fa15d9
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ function TscFile:_stringReplace(text, needle, replacement, label, overrides)
assert((i % 1 == 0) and (i > 0) and (i <= j), tostring(i))
assert((j % 1 == 0), tostring(j))
local a = text:sub(1, i - 1)
local b = text:sub(j + 1)
local b = text:sub(j)
return a .. replacement .. b, nil
end