fix pattern for Lua 5.2