trim
This commit is contained in:
parent
2ffd607230
commit
fc1e04304c
3 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
# 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)
|
||||
|
||||
[Live Example](https://angel-dart.github.io/validate)
|
||||
|
|
|
@ -62,7 +62,7 @@ class Validator extends Matcher {
|
|||
|
||||
void _importSchema(Map<String, dynamic> schema) {
|
||||
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
|
||||
.replaceAll(_asterisk, '')
|
||||
.replaceAll(_forbidden, '')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: angel_validate
|
||||
description: Cross-platform validation library based on `matcher`.
|
||||
version: 1.0.2
|
||||
version: 1.0.2+1
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/validate
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue