We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 452f8a9 commit 383f280Copy full SHA for 383f280
lib/src/api/models/text_input_formatter_model.dart
@@ -122,7 +122,7 @@ class RegexTextInputFormatterModel extends TextInputFormatterModel {
122
123
/// Allow only phone number format in the text field.
124
static const RegexTextInputFormatterModel noSpaces =
125
- RegexTextInputFormatterModel(name: 'No Spaces', pattern: r'^[^\s]*$');
+ RegexTextInputFormatterModel(name: 'No Spaces', pattern: r'[\S]');
126
127
128
static const RegexTextInputFormatterModel custom =
0 commit comments