Skip to content

Commit b981c21

Browse files
committed
v2.13.0
1 parent a833012 commit b981c21

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ yarn add @coders-tm/vue-number-format
1212
```
1313
## Vue 2.0
1414
```bash
15-
npm install @coders-tm/vue-number-format@^2.12.0
15+
npm install @coders-tm/vue-number-format@^2.13.0
1616
or
17-
yarn add @coders-tm/vue-number-format@^2.12.0
17+
yarn add @coders-tm/vue-number-format@^2.13.0
1818
```
1919
## Features
2020

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coders-tm/vue-number-format",
3-
"version": "2.12.0",
3+
"version": "2.13.0",
44
"private": false,
55
"description": "Easy formatted numbers, currency and percentage with input/directive mask for Vue.js",
66
"author": "Dipak Sarkar <[email protected]> (https://dipaksarkar.in/)",

src/number-format.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default class NumberFormat {
166166
if (this.isNull()) {
167167
return this.options.nullValue
168168
}
169-
if (this.options.reverseFill && this.realNumber() <= 0) {
169+
if (this.options.reverseFill && this.realNumber() === 0) {
170170
return this.options.nullValue
171171
}
172172
return this.sign() + this.realNumber()

0 commit comments

Comments
 (0)