tes
This commit is contained in:
parent
7fb9e27e28
commit
10a7012987
3 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
# validate
|
# 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)
|
[![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)
|
[Live Example](https://angel-dart.github.io/validate)
|
||||||
|
|
|
@ -82,12 +82,12 @@ class Validator extends Matcher {
|
||||||
|
|
||||||
_addTo(x) {
|
_addTo(x) {
|
||||||
if (x is Iterable)
|
if (x is Iterable)
|
||||||
x.map(_addTo);
|
x.forEach(_addTo);
|
||||||
else
|
else
|
||||||
iterable.add(x);
|
iterable.add(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
_iterable.map(_addTo);
|
_iterable.forEach(_addTo);
|
||||||
|
|
||||||
for (var rule in iterable) {
|
for (var rule in iterable) {
|
||||||
if (rule is Matcher) {
|
if (rule is Matcher) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: angel_validate
|
name: angel_validate
|
||||||
description: Cross-platform validation library based on `matcher`.
|
description: Cross-platform validation library based on `matcher`.
|
||||||
version: 1.0.2+2
|
version: 1.0.2+3
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/validate
|
homepage: https://github.com/angel-dart/validate
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue