#SET_GROUP - small fix for FilterPrefixes compute

This commit is contained in:
Applevangelist 2024-08-22 18:26:34 +02:00
parent 016875d724
commit 0d481afa16

View File

@ -2027,7 +2027,7 @@ do
local MGroupPrefix = false
for GroupPrefixId, GroupPrefix in pairs( self.Filter.GroupPrefixes ) do
--self:I( { "Prefix:", MGroup:GetName(), GroupPrefix } )
if string.find( string.lower(MGroup:GetName()), string.lower(GroupPrefix), 1 ) or string.find( string.lower(MGroup:GetName()), string.lower(GroupPrefix), 1, true ) then
if string.find(MGroup:GetName(), string.gsub(GroupPrefix,"-","%%-"),1) then
MGroupPrefix = true
end
end