Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL validation #35

Open
jamiecoe opened this issue Apr 20, 2018 · 0 comments
Open

URL validation #35

jamiecoe opened this issue Apr 20, 2018 · 0 comments
Assignees

Comments

@jamiecoe
Copy link

jamiecoe commented Apr 20, 2018

How about doing a bit of validation on the incoming image url to check it's valid?

Possibly with regex? Or checking the url includes jpeg|jpg|png?

Or to be really sure, use the request module on your server to do a call to that URL and check that you don't get an error 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants