DomenikIrrgang / ClassicLFG

LFG Tool for World of Warcraft: Classic
MIT License
23 stars 29 forks source link

Change LFM Filter #67

Closed DomenikIrrgang closed 5 years ago

DomenikIrrgang commented 5 years ago

I saw return string.find(text, "lfm") ~= nil or string.find(text, "lf3m") ~= nil or string.find(text, "lf2m") ~= nil or string.find(text, "lf1m") ~= nil in chat-parser.lua. Lua does have some not-quite-regex matching- I think you could pull this off with just return string.find(text, "lf[1-3]?m") ~= nil. Or return string.find(text, "lf%d*m")~=nil if you wanted to catch raid-sized LFMs