openresty / lua-resty-memcached

Lua memcached client driver for the ngx_lua based on the cosocket API
211 stars 63 forks source link

Use of string.match which is NYI in LuaJIT #28

Open edo888 opened 4 years ago

edo888 commented 4 years ago

Hi,

I have noticed that this library uses string.match function which is not supported by LuaJIT: http://wiki.luajit.org/NYI#libraries_string-library

Will this library play nice with LuaJIT or there are other obstacles which I'm not aware of?

Thanks!

agentzh commented 4 years ago

@edo888 Yeah, we should use ngx.re.find or ngx.re.match for it. Pull requests welcome!