Skip to content

Commit ca26474

Browse files
committed
Formatters & Validators #5
1 parent dfd5492 commit ca26474

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lib/src/api/models/text_input_validator_model.dart

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,7 @@ class RegexTextInputValidatorModel extends ConfigurableTextInputValidatorModel {
267267
errorMessage: 'Invalid email address.',
268268
);
269269

270-
/// A validator for phone numbers.
271-
static const RegexTextInputValidatorModel phoneNumber =
272-
RegexTextInputValidatorModel(
273-
name: 'Phone Number',
274-
pattern:
275-
r'^\+?([0-9]{1,4})\)?[-. ]?([0-9]{1,4})[-. ]?([0-9]{1,4})[-. ]?([0-9]{1,4})$',
276-
errorMessage: 'Invalid phone number.',
277-
);
278-
279-
/// A validator for phone numbers.
270+
/// A validator for custom regex patterns.
280271
static const RegexTextInputValidatorModel custom =
281272
RegexTextInputValidatorModel(
282273
name: 'Custom Regex',
@@ -290,7 +281,6 @@ class RegexTextInputValidatorModel extends ConfigurableTextInputValidatorModel {
290281
RegexTextInputValidatorModel.alphabetsOnly,
291282
RegexTextInputValidatorModel.alphanumeric,
292283
RegexTextInputValidatorModel.email,
293-
RegexTextInputValidatorModel.phoneNumber,
294284
RegexTextInputValidatorModel.custom,
295285
];
296286

0 commit comments

Comments
 (0)