scottcorgan / angular-linkify

Angular filter, directive, and service to linkify text.
MIT License
82 stars 29 forks source link

twitter shortlinks #28

Open yonatan-otzap opened 7 years ago

yonatan-otzap commented 7 years ago

Hi

Thanks for the amazing module - most useful!

I'm using it to linkify my tweets - however I see that the twitter shortlinks (eg https://t.co/DUEXxRu8vc) are not getting "linkified"

image

I'm not so hot at regex - any ideas how to solve this? Thanks!

yonatan-otzap commented 7 years ago

I think it is because twitter shortlinks have a one character domains (not including TLD) :-)