tes
This commit is contained in:
parent
7fb9e27e28
commit
10a7012987
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/validate
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue