Skip to content

Commit e637942

Browse files
authored
Make email matcher more permissive on TLD (#36)
`.health` was not matched at all
1 parent ba536fa commit e637942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/email.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'package:linkify/linkify.dart';
22

33
final _emailRegex = RegExp(
4-
r'^(.*?)((mailto:)?[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4})',
4+
r'^(.*?)((mailto:)?[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z][A-Z]+)',
55
caseSensitive: false,
66
dotAll: true,
77
);

0 commit comments

Comments
 (0)