| 1 | import 'package:cake_wallet/generated/i18n.dart'; |
| 2 | import 'package:cake_wallet/core/validator.dart'; |
| 3 | |
| 4 | class WalletNameValidator extends TextValidator { |
| 5 | WalletNameValidator() |
| 6 | : super( |
| 7 | errorMessage: S.current.error_text_wallet_name, |
| 8 | pattern: '^[a-zA-Z0-9\-_ ]+\$', |
| 9 | minLength: 1, |
| 10 | maxLength: 33); |
| 11 | } |