-
Notifications
You must be signed in to change notification settings - Fork 136
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
Resolve gray content in image issue #163
Conversation
src/providers/image-loader.ts
Outdated
* @param imageUrl | ||
*/ | ||
private isImageUrlRelative(imageUrl: string) { | ||
return !(/^https?:\/\//i.test(imageUrl) || /^file:\/\/\//i.test(imageUrl)); |
There was a problem hiding this comment.
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);
There was a problem hiding this comment.
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.
Hi @ihadeed, do you have an estimated date to merge this pull? |
@eduardoRoth Merged and published! .. sorry for the delay. |
For me its fixing #71. This could also fix #157 (Not tested).