mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-31 06:58:42 +01:00
Upstream reformatted its whole tree in 16ddc0837. Matching it removes
formatting from the conflict surface of this and every later sync.
11 lines
284 B
Dart
11 lines
284 B
Dart
import 'package:hash_wallet/core/validator.dart';
|
|
import 'package:hash_wallet/generated/i18n.dart';
|
|
|
|
class EmailValidator extends TextValidator {
|
|
EmailValidator()
|
|
: super(
|
|
errorMessage: 'Invalid email address',
|
|
pattern: '^[^@]+@[^@]+\.[^@]+',
|
|
);
|
|
}
|