Skip to content

Commit 383f280

Browse files
committed
Formatters & Validators #12
1 parent 452f8a9 commit 383f280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/api/models/text_input_formatter_model.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class RegexTextInputFormatterModel extends TextInputFormatterModel {
122122

123123
/// Allow only phone number format in the text field.
124124
static const RegexTextInputFormatterModel noSpaces =
125-
RegexTextInputFormatterModel(name: 'No Spaces', pattern: r'^[^\s]*$');
125+
RegexTextInputFormatterModel(name: 'No Spaces', pattern: r'[\S]');
126126

127127
/// Allow only phone number format in the text field.
128128
static const RegexTextInputFormatterModel custom =

0 commit comments

Comments
 (0)