Skip to content

Commit 03ec575

Browse files
Merge branch 'main' into ignore_patterns
2 parents ec9fc3d + 04159b2 commit 03ec575

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dir_content_diff/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ def compare_trees(
341341
ignore_patterns = []
342342
else:
343343
ignore_patterns = [re.compile(i) for i in ignore_patterns]
344+
345+
# Build the comparator registry if not given
346+
if comparators is None:
347+
comparators = get_comparators()
348+
344349

345350
# Loop over all files and call the correct comparator
346351
different_files = {}

0 commit comments

Comments
 (0)