| 1 | import 'package:cake_wallet/generated/i18n.dart'; |
| 2 | import 'package:cake_wallet/core/validator.dart'; |
| 3 | |
| 4 | class ContactNameValidator extends TextValidator { |
| 5 | ContactNameValidator() |
| 6 | : super( |
| 7 | errorMessage: S.current.error_text_contact_name, |
| 8 | pattern: '''[^`,'"]''', |
| 9 | minLength: 1, |
| 10 | maxLength: 32); |
| 11 | } |