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
262 stars 99 forks source link

Wrong email Regex pattern #93

Open kmigntw opened 2 years ago

kmigntw commented 2 years ago

Hello, the library does not recognize emails with longer extension (.world for example - it is getting .worl only).

The problem is in the Regex expresion. To fix that I added changed the length from 4 to 6. But it will be good to have it in the next bug release

r'^(.*?)((mailto:)?[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4})', r'^(.*?)((mailto:)?[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6})',