Skip to content

Commit

Permalink
fix image header extension check
Browse files Browse the repository at this point in the history
  • Loading branch information
gounux committed Jul 4, 2024
1 parent 703e7aa commit 5e2cbeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geotribu_cli/content/header_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def check_image_extension(
allowed_extensions: tuple[str] = defaults_settings.images_header_extensions,
) -> bool:
ext = image_url.split(".")[-1]
return ext in allowed_extensions
return f".{ext}" in allowed_extensions


def get_existing_tags() -> list[str]:
Expand Down

0 comments on commit 5e2cbeb

Please sign in to comment.