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

Email address/URL conflict #3

Open
thewilkybarkid opened this issue Feb 6, 2013 · 0 comments
Open

Email address/URL conflict #3

thewilkybarkid opened this issue Feb 6, 2013 · 0 comments
Labels
Milestone

Comments

@thewilkybarkid
Copy link
Contributor

I've encountered a case where a URL has been mistyped, and Linkify doesn't cope very well.

Using [email protected]:

Calling Returns
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:

Calling Returns
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() and processUrls() return acceptable results for both. Combining them (ie process()), results in something very wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant