@coders-tm/vue-number-format
Advanced tools
Comparing version 2.1.13 to 2.1.14
@@ -37,3 +37,3 @@ /** | ||
this.isNull = (input = this.input) => | ||
this.numberOnly(input, new RegExp("[^0-9]+", "gi")) === null; | ||
!this.numberOnly(input, new RegExp("[^0-9]+", "gi")); | ||
@@ -148,3 +148,4 @@ this.clean = (clean = false) => { | ||
this.input = input || this.options.nullValue; | ||
if (this.isNull()) return this.options.nullValue; | ||
if (this.isNull() && !this.options.reverseFill) | ||
return this.options.nullValue; | ||
return ( | ||
@@ -166,3 +167,4 @@ this.sign() + | ||
this.input = input || this.options.nullValue; | ||
if (this.isNull()) return this.options.nullValue; | ||
if (this.isNull() && !this.options.reverseFill) | ||
return this.options.nullValue; | ||
return this.sign() + this.realNumber(); | ||
@@ -169,0 +171,0 @@ }; |
@@ -33,3 +33,3 @@ /** | ||
this.isNull = (input = this.input) => | ||
this.numberOnly(input, new RegExp("[^0-9]+", "gi")) === null; | ||
!this.numberOnly(input, new RegExp("[^0-9]+", "gi")); | ||
@@ -144,3 +144,4 @@ this.clean = (clean = false) => { | ||
this.input = input || this.options.nullValue; | ||
if (this.isNull()) return this.options.nullValue; | ||
if (this.isNull() && !this.options.reverseFill) | ||
return this.options.nullValue; | ||
return ( | ||
@@ -162,3 +163,4 @@ this.sign() + | ||
this.input = input || this.options.nullValue; | ||
if (this.isNull()) return this.options.nullValue; | ||
if (this.isNull() && !this.options.reverseFill) | ||
return this.options.nullValue; | ||
return this.sign() + this.realNumber(); | ||
@@ -165,0 +167,0 @@ }; |
{ | ||
"name": "@coders-tm/vue-number-format", | ||
"version": "2.1.13", | ||
"version": "2.1.14", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Easy formatted numbers, currency and percentage with input/directive mask for Vue.js", |
@@ -9,2 +9,4 @@ [](https://www.npmjs.com/package/@coders-tm/vue-number-format) | ||
[](https://vue-number-format.netlify.app) | ||
Vue Number Format is used to format a number using fixed-point notation. It can be used to format a number with a specific number of digits to the right of the decimal. | ||
@@ -11,0 +13,0 @@ |
33327
836
33