Skip to content

Commit

Permalink
fix: update email regex on profile edit to support TLDs of any length
Browse files Browse the repository at this point in the history
  • Loading branch information
MDeLuise committed Oct 2, 2024
1 parent c9f52d2 commit a514343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/lib/more/edit_profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class _EditProfilePageState extends State<EditProfilePage> {

bool _isValidEmail(String email) {
final RegExp emailRegex = RegExp(
r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$',
r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,}$',
caseSensitive: false,
);
return emailRegex.hasMatch(email);
Expand Down

0 comments on commit a514343

Please sign in to comment.