mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 04:32:32 +00:00
7 lines
172 B
Dart
7 lines
172 B
Dart
class LunaValidator {
|
|
bool email(String email) {
|
|
const regex = r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)";
|
|
return RegExp(regex).hasMatch(email);
|
|
}
|
|
}
|