mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
@ -109,9 +109,10 @@ class SettingsListState extends State<SettingsList> {
|
||||
return tr('settings.email.validator.empty');
|
||||
}
|
||||
|
||||
bool emailValid =
|
||||
RegExp(r"^[a-zA-Z0-9.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z\-]+")
|
||||
.hasMatch(value);
|
||||
bool emailValid = RegExp(
|
||||
r"^[a-zA-Z0-9.\-!#$%&'*+/=?^_``{|}~]+@[a-zA-Z0-9\-]+\.[a-zA-Z\-]+")
|
||||
.hasMatch(value);
|
||||
|
||||
if (!emailValid) {
|
||||
return tr('settings.email.validator.invalid');
|
||||
}
|
||||
|
Reference in New Issue
Block a user