diff options
author | Diego MartÃnez <kaeza@users.noreply.github.com> | 2017-01-24 23:22:16 -0300 |
---|---|---|
committer | Diego MartÃnez <kaeza@users.noreply.github.com> | 2017-01-24 23:22:16 -0300 |
commit | e72ab692e02d864575747f5af3209d7c1fe88669 (patch) | |
tree | b5049f6ae99edb7d0c79f4940d3f947e4d198bcb | |
parent | a3f9090ee8f30001f355c68c634682959f5ebe55 (diff) |
Output character itself if unknown escape.
-rw-r--r-- | gettext.lua | 2 |
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)) |