public static bool IsIgnored()

in JetBrains.SbomUtils/src/JetBrains.SbomUtils/IgnorePatternUtils.cs [8:19]


  public static bool IsIgnored(string entryName, IEnumerable<Regex> ignorePatterns)
  {
    var entryWithProperSeparator = entryName.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);

    foreach (Regex pattern in ignorePatterns)
    {
      if (pattern.IsMatch(entryWithProperSeparator))
        return true;
    }

    return false;
  }