TF-1677: Support validation email for something@localhost case
(cherry picked from commit e74208941e8e5a2480bb444eca6b462bc576eb94)
This commit is contained in:
@@ -32,4 +32,8 @@ class AppUtils {
|
||||
static bool isDirectionRTL(BuildContext context) {
|
||||
return intl.Bidi.isRtlLanguage(Localizations.localeOf(context).languageCode);
|
||||
}
|
||||
|
||||
static bool isEmailLocalhost(String email) {
|
||||
return RegExp(r'^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@localhost$').hasMatch(email);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user