mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
12 lines
345 B
Dart
12 lines
345 B
Dart
import 'package:cake_wallet/generated/i18n.dart';
|
|
import 'package:cake_wallet/core/validator.dart';
|
|
|
|
class ContactNameValidator extends TextValidator {
|
|
ContactNameValidator()
|
|
: super(
|
|
errorMessage: S.current.error_text_contact_name,
|
|
pattern: '''[^`,'"]''',
|
|
minLength: 1,
|
|
maxLength: 32);
|
|
}
|