trim
This commit is contained in:
parent
2ffd607230
commit
fc1e04304c
3 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
# validate
|
# 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)
|
[![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)
|
||||||
|
|
|
@ -62,7 +62,7 @@ class Validator extends Matcher {
|
||||||
|
|
||||||
void _importSchema(Map<String, dynamic> schema) {
|
void _importSchema(Map<String, dynamic> schema) {
|
||||||
for (var keys in schema.keys) {
|
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
|
var fieldName = key
|
||||||
.replaceAll(_asterisk, '')
|
.replaceAll(_asterisk, '')
|
||||||
.replaceAll(_forbidden, '')
|
.replaceAll(_forbidden, '')
|
||||||
|
|
|
@ -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
|
version: 1.0.2+1
|
||||||
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