summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Martínez <kaeza@users.noreply.github.com>2017-01-24 23:22:16 -0300
committerDiego Martínez <kaeza@users.noreply.github.com>2017-01-24 23:22:16 -0300
commite72ab692e02d864575747f5af3209d7c1fe88669 (patch)
treeb5049f6ae99edb7d0c79f4940d3f947e4d198bcb
parenta3f9090ee8f30001f355c68c634682959f5ebe55 (diff)
Output character itself if unknown escape.
-rw-r--r--gettext.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/gettext.lua b/gettext.lua
index d6ce223..62524f5 100644
--- a/gettext.lua
+++ b/gettext.lua
@@ -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))