| ... | ... | @@ -1507,6 +1507,7 @@ const Filter = struct { |
| 1507 | 1507 | pub fn includePath(self: Filter, sub_path: []const u8) bool { |
| 1508 | 1508 | if (self.include_paths.count() == 0) return true; |
| 1509 | 1509 | if (self.include_paths.contains("")) return true; |
| 1510 | if (self.include_paths.contains(".")) return true; |
| 1510 | 1511 | if (self.include_paths.contains(sub_path)) return true; |
| 1511 | 1512 | |
| 1512 | 1513 | // Check if any included paths are parent directories of sub_path. |
| ... | ... | @@ -1571,4 +1572,5 @@ const ErrorBundle = std.zig.ErrorBundle; |
| 1571 | 1572 | |
| 1572 | 1573 | test { |
| 1573 | 1574 | _ = Filter; |
| 1575 | _ = FileType; |
| 1574 | 1576 | } |