| 1 | import 'package:cake_wallet/core/validator.dart'; |
| 2 | import 'package:cake_wallet/generated/i18n.dart'; |
| 3 | import 'package:cw_core/wallet_type.dart'; |
| 4 | |
| 5 | class AddressLabelValidator extends TextValidator { |
| 6 | AddressLabelValidator({WalletType? type}) |
| 7 | : super( |
| 8 | errorMessage: S.current.error_text_subaddress_name, |
| 9 | pattern: '''^[^`,'"]{1,20}\$''', |
| 10 | minLength: 1, |
| 11 | maxLength: 20); |
| 12 | } |