parshap / html-linkify

Turn plain text links into safe HTML anchor elements
11 stars 5 forks source link

Consider links that don't begin with "www" or "http://" #4

Open parshap opened 10 years ago

parshap commented 10 years ago

Currently the link regex only matches links that begin with "www" or "http://" ("or https://"). It may be warranted to consider other links. Possible approaches would be to look for other subdomains, look for other parts of a URI (e.g., a port), or whitelisting gTLDs. It would be useful to see what expectations are set by Twitter's, Facebook's and others' behaviors.