tes
This commit is contained in:
parent
7fb9e27e28
commit
10a7012987
3 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
# validate
|
||||
[](https://pub.dartlang.org/packages/angel_validate)
|
||||
[](https://pub.dartlang.org/packages/angel_validate)
|
||||
[](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