Skip to content

Commit 6c6fff2

Browse files
committed
ignore extensions by renamed things in checks
1 parent ab098f4 commit 6c6fff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check-redirects/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def slashify(url):
6464
deleted_pages.append(line_parts[1].strip())
6565
elif status[0] == 'R':
6666
old_filename, file_extension = os.path.splitext(line_parts[1])
67-
if file_extension.strip() not in iamge_extensions + vue_extensions:
67+
if file_extension.strip() not in iamge_extensions + vue_extensions + data_extensions:
6868
renamed_pages_or_data_files.append( (line_parts[1].strip(),line_parts[2].strip()) )
6969
if file_extension not in captured_exts:
7070
captured_exts.append(file_extension)

0 commit comments

Comments
 (0)