react-maskfy
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -79,3 +79,3 @@ import { Component } from 'react'; | ||
let _valueFormat; | ||
if(!_mask) return console.error(new Error('Maskfy: Insert input mask required. Ex.: Maskfy({mask: "9999-99-99"})')); | ||
if(!_mask) return true; | ||
if(_mask.length>=_value.length){ | ||
@@ -82,0 +82,0 @@ _valueFormat = _value.replace((_letters ? /\W/g : /\D/g), '').split(''); |
{ | ||
"name": "react-maskfy", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A React library without a dependency... Very simple to install and use. With only 1kb (gzip) code, IE Compatibility, it's also well accepted on mobile devices", | ||
@@ -5,0 +5,0 @@ "main": "maskfy.js", |
@@ -1,2 +0,2 @@ | ||
# Maskfy (2.0.0) - Input Mask Simple | ||
# Maskfy (2.0.2) - Input Mask Simple | ||
A React library without a dependency... Very simple to install and use. With only 1kb (gzip) code, IE Compatibility, it's also well accepted on mobile devices | ||
@@ -3,0 +3,0 @@ ## Install / Usage |
36471