zee-validator
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -484,3 +484,3 @@ import { Component, Vue } from 'vue-property-decorator'; | ||
validate: function (value) { | ||
if (!value) | ||
if (!value || typeof value === 'number') | ||
return true; | ||
@@ -487,0 +487,0 @@ return !!value.trim() && /^(\d+(\.\d+)?$)/.test(value.trim()); |
@@ -489,3 +489,3 @@ (function (global, factory) { | ||
validate: function (value) { | ||
if (!value) | ||
if (!value || typeof value === 'number') | ||
return true; | ||
@@ -492,0 +492,0 @@ return !!value.trim() && /^(\d+(\.\d+)?$)/.test(value.trim()); |
{ | ||
"name": "zee-validator", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A model-based form validation library for vue inspired by vuelidate and vee-validate.", | ||
@@ -5,0 +5,0 @@ "module": "dist/zee-validate.es5.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
229525