This commit is contained in:
@@ -234,6 +234,7 @@ namespace AyaNova.Biz
|
||||
//////////////////////////////////
|
||||
// COMPARE TAGS COLLECTION
|
||||
//
|
||||
// A match here means *all* tags in the subscription are present in the object
|
||||
//
|
||||
public static bool TagsMatch(List<string> objectTags, List<string> subTags)
|
||||
{
|
||||
@@ -245,9 +246,8 @@ namespace AyaNova.Biz
|
||||
//not enought tags on object to match sub tags?
|
||||
if (subTags.Count > objectTags.Count) return false;
|
||||
|
||||
//ok, here it's worth checking it out
|
||||
//Do ALL the tags in the subscription exist in the object?
|
||||
return subTags.All(z => objectTags.Any(x => x == z));
|
||||
|
||||
}
|
||||
|
||||
/////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user