1
0
Fork 0

ToLua: Fixed LuaJit compatibility.

This commit is contained in:
Mattes D 2015-05-11 16:19:01 +02:00
parent 4083bc7005
commit 3ddd2f567c
1 changed files with 8 additions and 0 deletions

View File

@ -54,3 +54,11 @@ string.repl = ogsub
-- Lua 5.2+ and LuaJit don't have string.gfind(). Use string.gmatch() instead:
if not(string.gfind) then
string.gfind = string.gmatch
end