Cretezy / flutter_linkify

Turns text URLs and emails into clickable inline links in text for Flutter
https://pub.dartlang.org/packages/flutter_linkify
MIT License
269 stars 101 forks source link

Linkify Multiple URLs in one String #24

Closed altShiftDev closed 4 years ago

altShiftDev commented 4 years ago

Hi, It would be nice if the plugin could handle a case like the following:

"email me at mailto:test@test.com or visit my website https://test.com, or this other website abc.test.com"

Currently it ignores the email if it finds a link and can only find a link if http/https is prefixed. Once it finds any match it will ignore the rest of the string, even if other valid matches exist.

pilotviper134 commented 4 years ago

Any ideas how to fix this? The plugin should return an array containing all collected links...

Cretezy commented 4 years ago

This is supported, the email should not have mailto: at the start to be reconized. You can implement a custom parser for mailto: if you'd like using the latest version and a parser for https://github.com/Cretezy/linkify