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

Can't identity the links with whitespaces #118

Open
anishlp7 opened this issue Sep 20, 2022 · 1 comment
Open

Can't identity the links with whitespaces #118

anishlp7 opened this issue Sep 20, 2022 · 1 comment

Comments

@anishlp7
Copy link

anishlp7 commented Sep 20, 2022

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?

@MDUK0001
Copy link

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

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

2 participants