LeonardoCardoso / SwiftLinkPreview

It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.
https://leocardz.com/swift-link-preview-5a9860c7756f
MIT License
1.37k stars 196 forks source link

Fix parse the content for openGraph image for github #145

Closed MuhtasimTanmoy closed 3 years ago

MuhtasimTanmoy commented 3 years ago

Fixed

Sample Meta tag for target image in Github

<meta property="og:image" content="https://opengraph.githubassets.com/404e27b179d006746f87a82d651eba1e24a2dd7babd8
7cb16db0a4d09879e08c/bitcoin/bitcoin" />
lhunath commented 3 years ago

It likely doesn't make sense to try to match this URL against a pattern to try and detect it; instead some tag values should just be assumed to be referencing image URLs without using any pattern testing.