rsuite-schema
Advanced tools
Comparing version
@@ -51,3 +51,8 @@ 'use strict'; | ||
//String & Array | ||
//String trim | ||
if (typeof value === 'string') { | ||
value = value.replace(/(^\s*)|(\s*$)/g, ''); | ||
} | ||
//String/Array length > 0 | ||
if (value && value.length && value.length > 0) { | ||
@@ -54,0 +59,0 @@ return true; |
{ | ||
"name": "rsuite-schema", | ||
"version": "0.0.1-alpha.5", | ||
"version": "0.0.1-alpha.6", | ||
"description": "Schema for data modeling & validation", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
39047
0.44%703
0.57%