diff --git a/minify.lua b/minify.lua index 41d7a60..972d66f 100644 --- a/minify.lua +++ b/minify.lua @@ -324,8 +324,7 @@ function CreateLuaTokenStream(text) local c2 = get() if c2 == '\\' then local c3 = get() - local esc = CharacterForEscape[c3] - if not esc then + if not(Digits[c3] or CharacterForEscape[c3]) then error("Invalid Escape Sequence `"..c3.."`.") end elseif c2 == c1 then