We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've encountered a case where a URL has been mistyped, and Linkify doesn't cope very well.
Using [email protected]:
[email protected]
processEmails()
<a href="mailto:[email protected]">[email protected]</a>
processUrls()
<a href="http://[email protected]">[email protected]</a>
process()
<a href="http://<a href="mailto:[email protected]">[email protected]</a>"><a href="mailto:[email protected]">[email protected]</a></a>
In my real-world example, however, there's a path. Using [email protected]/baz:
[email protected]/baz
<a href="mailto:[email protected]">[email protected]</a>/baz
<a href="http://[email protected]/baz">[email protected]/baz</a>
<a href="http://<a href="mailto:[email protected]">[email protected]</a>/baz"><a href="mailto:[email protected]">[email protected]</a>/baz</a>
Individually processEmails() and processUrls() return acceptable results for both. Combining them (ie process()), results in something very wrong.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've encountered a case where a URL has been mistyped, and Linkify doesn't cope very well.
Using
[email protected]
:processEmails()
<a href="mailto:[email protected]">[email protected]</a>
processUrls()
<a href="http://[email protected]">[email protected]</a>
process()
<a href="http://<a href="mailto:[email protected]">[email protected]</a>"><a href="mailto:[email protected]">[email protected]</a></a>
In my real-world example, however, there's a path. Using
[email protected]/baz
:processEmails()
<a href="mailto:[email protected]">[email protected]</a>/baz
processUrls()
<a href="http://[email protected]/baz">[email protected]/baz</a>
process()
<a href="http://<a href="mailto:[email protected]">[email protected]</a>/baz"><a href="mailto:[email protected]">[email protected]</a>/baz</a>
Individually
processEmails()
andprocessUrls()
return acceptable results for both. Combining them (ieprocess()
), results in something very wrong.The text was updated successfully, but these errors were encountered: