diff --git a/README.md b/README.md index 812fc495..41f263e6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # validate -[![version 1.0.2](https://img.shields.io/badge/pub-v1.0.2-brightgreen.svg)](https://pub.dartlang.org/packages/angel_validate) +[![version 1.0.2+1](https://img.shields.io/badge/pub-v1.0.2+1-brightgreen.svg)](https://pub.dartlang.org/packages/angel_validate) [![build status](https://travis-ci.org/angel-dart/validate.svg)](https://travis-ci.org/angel-dart/validate) [Live Example](https://angel-dart.github.io/validate) diff --git a/lib/src/validator.dart b/lib/src/validator.dart index 1cb1007d..814b8304 100644 --- a/lib/src/validator.dart +++ b/lib/src/validator.dart @@ -62,7 +62,7 @@ class Validator extends Matcher { void _importSchema(Map schema) { for (var keys in schema.keys) { - for (var key in keys.split(',')) { + for (var key in keys.split(',').map((s) => s.trim())) { var fieldName = key .replaceAll(_asterisk, '') .replaceAll(_forbidden, '') diff --git a/pubspec.yaml b/pubspec.yaml index b3a0b2f3..8adb14c3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: angel_validate description: Cross-platform validation library based on `matcher`. -version: 1.0.2 +version: 1.0.2+1 author: Tobe O homepage: https://github.com/angel-dart/validate environment: