Skip to content

Conversation

@felixbroehl
Copy link
Contributor

For me its fixing #71. This could also fix #157 (Not tested).

* @param imageUrl
*/
private isImageUrlRelative(imageUrl: string) {
return !(/^https?:\/\//i.test(imageUrl) || /^file:\/\/\//i.test(imageUrl));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use a combined RegExp

return !/^(https?|file):\/\/\/?/i.test(imageUrl);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your advice. I changed it.

@eduardoRoth
Copy link
Member

Hi @ihadeed, do you have an estimated date to merge this pull?

@ihadeed ihadeed merged commit a15309f into zyra:master Jun 29, 2018
@ihadeed
Copy link
Member

ihadeed commented Jun 29, 2018

@eduardoRoth Merged and published! .. sorry for the delay.

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

Successfully merging this pull request may close these issues.

Same image won't load on first run

3 participants