in src/PSDocs/Models/DocumentFilter.cs [28:58]
public bool Match(string name, string[] tag)
{
// If name is filtered, the name must be listed
if (_AcceptedNames.Count > 0 && !_AcceptedNames.Contains(name))
{
return false;
}
// Check if no tags are required
if (_RequiredTags.Count == 0)
{
return true;
}
// Check for impossible match
if (tag == null || _RequiredTags.Count > tag.Length)
{
return false;
}
// Check each tag
foreach (var t in tag)
{
if (!_RequiredTags.Contains(t))
{
return false;
}
}
return true;
}