add update phone number and recovery email
This commit is contained in:
@@ -403,3 +403,12 @@ String removeTrailingZeros(double number) {
|
||||
: result;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
bool isValidEmail(String email) {
|
||||
// Define a regular expression for validating an email
|
||||
final emailRegex = RegExp(r'^[^@\s]+@[^@\s]+\.[^@\s]+$');
|
||||
|
||||
// Check if the email matches the pattern
|
||||
return emailRegex.hasMatch(email);
|
||||
}
|
||||
Reference in New Issue
Block a user