From 10a7012987a25564e7d96ad98aefdd5564ff024b Mon Sep 17 00:00:00 2001 From: thosakwe Date: Wed, 26 Apr 2017 08:52:19 -0400 Subject: [PATCH] tes --- README.md | 2 +- lib/src/validator.dart | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 79ff91c7..389b8730 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # validate -[![version 1.0.2+2](https://img.shields.io/badge/pub-v1.0.2+2-brightgreen.svg)](https://pub.dartlang.org/packages/angel_validate) +[![version 1.0.2+3](https://img.shields.io/badge/pub-v1.0.2+3-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 06702aa2..3e80381b 100644 --- a/lib/src/validator.dart +++ b/lib/src/validator.dart @@ -82,12 +82,12 @@ class Validator extends Matcher { _addTo(x) { if (x is Iterable) - x.map(_addTo); + x.forEach(_addTo); else iterable.add(x); } - _iterable.map(_addTo); + _iterable.forEach(_addTo); for (var rule in iterable) { if (rule is Matcher) { diff --git a/pubspec.yaml b/pubspec.yaml index cf7e2a6c..25d388b5 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+2 +version: 1.0.2+3 author: Tobe O homepage: https://github.com/angel-dart/validate environment: