AndreasFaust / gatsby-source-custom-api

Source data from any API and transform it to (File-)Nodes.
52 stars 25 forks source link

Determine image extension from url with query string or hash #33

Closed sashau closed 2 years ago

sashau commented 2 years ago

This updates the extensionIsValid function to return true for image urls that include periods in query strings or hashes that are appended to the url. For instance, Instagram image urls include periods in the query strings and so the extensionIsValidfunction returns false for these image urls.

Example image url formats that currently don't work:

AndreasFaust commented 2 years ago

Thank you for your contribution!