mirror of
https://github.com/appgurueu/modlib.git
synced 2024-12-22 21:32:27 +01:00
Fix text.utf8 edge case
This commit is contained in:
parent
9fee80061e
commit
6cc39ef023
2
text.lua
2
text.lua
@ -131,7 +131,7 @@ magic_charset = "[" .. table.concat(magic_charset) .. "]"
|
||||
function escape_magic_chars(text) return text:gsub("(" .. magic_charset .. ")", "%%%1") end
|
||||
|
||||
function utf8(number)
|
||||
if number < 0x007F then
|
||||
if number <= 0x007F then
|
||||
-- Single byte
|
||||
return string.char(number)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user