react-linkify icon indicating copy to clipboard operation
react-linkify copied to clipboard

Can't identity the links with whitespaces

Open anishlp7 opened this issue 3 years ago • 1 comments

Hi React-Linkify Team,

I'm facing an issue, Since I'm having a string with links, but the links has some whitespaces, so Linkify treats the link after the whitespace as a string, instead of link.

Example:

Hello, Welcome to my website, https://example.portolfio.com/abc/example portfolio.png which is the example portfolio image

in this, React Linkify considers https://example.portolfio.com/abc/example as the link and leave the portfolio.png as a normal string.

Is there a way to fix this?

anishlp7 avatar Sep 20 '22 05:09 anishlp7

That's not a valid URL, you need to URL encode your filename e.g. https://example.portolfio.com/abc/example%20portfolio.png

MDUK0001 avatar May 11 '23 15:05 MDUK0001