Mailspring/internal_packages/message-list/spec/autolinker-fixtures/plaintext-in.html
Ben Gotow c76582194a rm(autolinker): Use our own very simple autolinker
Summary:
Autolinker is a great open source project but it attempts to parse HTML with regexp, is quite slow, and hangs on specific emails https://github.com/nylas/N1/issues/1540

This is super bad, and also super unnecessary. I think this should do the trick.

Note: I changed the urlRegex in our Utils to be much more liberal. It now matches anything that looks like a URL, not just things with the http:// and https:// prefixes. It's used in the LinkEditor and onboarding screen (detecting auth errors with urls) and I think it should be ok?

Test Plan: Need to write some tests

Reviewers: evan, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D2725
2016-03-14 12:30:54 -07:00

26 lines
475 B
HTML

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
http://apple.com/
<div><br></div>
<div>https://dropbox.com/</div>
<div><br></div>
<div>whatever.com</div>
<div><br></div>
<div>kinda-looks-like-a-link.com</div>
<div><br></div>
<div>ftp://helloworld.com/asd</div>
<div><br></div>
<div>540-250-2334</div>
<div><br></div>
<div>+1-524-123-3333</div>
<div><br></div>
<div>550.555.1234</div>
<div><br></div>
<div>bengotow@gmail.com</div>
<div><br></div>
</body>
</html>