Minor optimisation to parser

This commit is contained in:
Talia 2025-03-12 11:56:11 +01:00
parent 7f4ad62c10
commit e071d5514b

View file

@ -57,7 +57,7 @@ local function parsetext(callback, text, number)
break break
end end
end end
callback("text", text:sub(start)) callback("text", (start == 1) and text or text:sub(start))
end end
--- @param callback callback --- @param callback callback