mirror of
https://github.com/minetest-mods/intllib.git
synced 2025-01-23 16:30:18 +01:00
Output character itself if unknown escape.
This commit is contained in:
parent
a3f9090ee8
commit
e72ab692e0
@ -25,7 +25,7 @@ local function unescape(str)
|
|||||||
local bsl = #bs
|
local bsl = #bs
|
||||||
local realbs = strrep("\\", bsl/2)
|
local realbs = strrep("\\", bsl/2)
|
||||||
if bsl%2 == 1 then
|
if bsl%2 == 1 then
|
||||||
c = escapes[c]
|
c = escapes[c] or c
|
||||||
end
|
end
|
||||||
return realbs..c
|
return realbs..c
|
||||||
end))
|
end))
|
||||||
|
Loading…
Reference in New Issue
Block a user