lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

The following code:

local re=require('re')
local a="[c]?"

shows the error: (using luajit in linux / macosx)

ERROR:  bad argument #1 to '?' (lpeg-pattern expected, got string)

if line 2 is changed to:
local a="[cd]?"

works ok.

in lpeg v0.10 both works ok.

Juan Carlos González Amestoy