Merge pull request #580 from FlightControl-Master/FilterPrefixFix

Fix for '-' characters in the prefix string when using FilterPrefix o…
This commit is contained in:
Sven Van de Velde 2017-06-21 06:22:42 +02:00 committed by GitHub
commit 3b9fdbd5cd

View File

@ -1193,7 +1193,7 @@ function SET_GROUP:IsIncludeObject( MooseGroup )
local MooseGroupPrefix = false
for GroupPrefixId, GroupPrefix in pairs( self.Filter.GroupPrefixes ) do
self:T3( { "Prefix:", string.find( MooseGroup:GetName(), GroupPrefix, 1 ), GroupPrefix } )
if string.find( MooseGroup:GetName(), GroupPrefix, 1 ) then
if string.find( MooseGroup:GetName(), GroupPrefix:gsub ("-", "%%-"), 1 ) then
MooseGroupPrefix = true
end
end