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 84bf833 commit 4db4f11Copy full SHA for 4db4f11
lib/config/yml_generator_config.dart
@@ -368,9 +368,9 @@ class YmlGeneratorConfig {
368
}
369
370
ItemType _parseSimpleType(String type) {
371
- final listRegex = RegExp(r'^[Ll]ist<\s*([a-zA-Z_0-9]*)\s*>\s*$');
+ final listRegex = RegExp(r'^\s*[Ll]ist<\s*([a-zA-Z_0-9]*)\s*>\s*$');
372
final mapRegex =
373
- RegExp(r'^[Mm]ap<([a-zA-Z_0-9]*)\s*,\s*([a-zA-Z_0-9]*)\s*>\s*$');
+ RegExp(r'^\s*[Mm]ap<([a-zA-Z_0-9]*)\s*,\s*([a-zA-Z_0-9]*)\s*>\s*$');
374
375
final lowerType = type.toLowerCase();
376
0 commit comments