public bool Filter(GlobMatch match)
 {
     foreach (var rule in rules)
     {
         if (rule.Matcher.IsMatch(match.GetPathSegments()))
         {
             return(!rule.Exclude);
         }
     }
     return(false);
 }
Ejemplo n.º 2
0
 public Match(T item, GlobMatch details)
 {
     Item    = item;
     Details = details;
 }
Ejemplo n.º 3
0
 public GlobMatcher(Glob glob, bool caseSensitive)
 {
     start = new GlobMatchFactory(caseSensitive).Start(glob);
 }
Ejemplo n.º 4
0
 public Rule(GlobMatch details, bool exclude)
 {
     Details = details;
     Exclude = exclude;
 }