1
0
mirror of https://github.com/minetest-mods/intllib.git synced 2025-01-23 08:20:19 +01:00

Output character itself if unknown escape.

This commit is contained in:
Diego Martínez 2017-01-24 23:22:16 -03:00
parent a3f9090ee8
commit e72ab692e0

View File

@ -25,7 +25,7 @@ local function unescape(str)
local bsl = #bs
local realbs = strrep("\\", bsl/2)
if bsl%2 == 1 then
c = escapes[c]
c = escapes[c] or c
end
return realbs..c
end))