chore: refactor and cleanup of system services

This commit is contained in:
Jagandeep Brar
2022-05-10 21:16:16 -04:00
parent dc94c036d1
commit c2ac10bdf2
294 changed files with 770 additions and 654 deletions

12
lib/utils/validator.dart Normal file
View File

@@ -0,0 +1,12 @@
import 'package:lunasea/vendor.dart';
class LunaValidator {
const 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);
}
}
final validatorProvider = Provider((_) => const LunaValidator._());