Error when searching for "[": malformed pattern (missing ']')
Blazeflack opened this issue ยท 3 comments
When calling "Lib:Matches(link, search)" the following error will trigger if search contains the character "[":
malformed pattern (missing ']')
Proposed fix:
Disable pattern matching for the :find method used on lines 109 and 136:
if value:find(tag, nil, true) then
if text and self:Clean(text):find(search, nil, true) then
The same should be done in LibItemSearch-1.2 (sorry for including it here, but there is no issue tracker for LibItemSearch), on line 109:
if name:find(search, nil, true) then
I guess that's true. I guess I never really thought anyone needed to be able to include patterns in their search string.