Skip to content

Commit

Permalink
Merge pull request #677 from Webperf-se/sitemap-extension-fix
Browse files Browse the repository at this point in the history
Standard File Test - Sitemap known extensions fix
  • Loading branch information
7h3Rabbit authored Oct 21, 2024
2 parents cd69127 + 8f1fbcc commit b19cb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/standard_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def create_sitemap_dict(sitemap_items, robots_domain):

tmp = os.path.splitext(parsed_item_url.path)[1].strip('.').lower()
ext_len = len(tmp)
if 2 <= ext_len >= 4:
if 2 <= ext_len <= 4:
if tmp in KNOWN_EXTENSIONS:
item_type = tmp
elif parsed_item_url.path.startswith('/download/'):
Expand Down

0 comments on commit b19cb67

Please sign in to comment.