Addons-By-Neotron/BulkMail

The function simpleFind is broken

Closed this issue · 2 comments

The API changed. Here's what it should be in 10.1.0

local function simpleFind(tt, exact, text)
    if not tt or not tt.lines then
        return
    end
    local searchFunction = exact and findExact or findPattern
    for _,data in ipairs(tt.lines) do
        if data.leftText then
            -- print("Matching ", text, "with tooltip line", data.leftText)
            if searchFunction(data.leftText, text) then
                return true
            end
        end
    end
end

Fixed in next release.