added a temporary assertion to resty.core.regex for tracing a bug in LuaJIT v2.1.