Skip to content

Commit

Permalink
v2.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dipaksarkar committed Apr 2, 2023
1 parent a833012 commit b981c21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ yarn add @coders-tm/vue-number-format
```
## Vue 2.0
```bash
npm install @coders-tm/vue-number-format@^2.12.0
npm install @coders-tm/vue-number-format@^2.13.0
or
yarn add @coders-tm/vue-number-format@^2.12.0
yarn add @coders-tm/vue-number-format@^2.13.0
```
## Features

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coders-tm/vue-number-format",
"version": "2.12.0",
"version": "2.13.0",
"private": false,
"description": "Easy formatted numbers, currency and percentage with input/directive mask for Vue.js",
"author": "Dipak Sarkar <[email protected]> (https://dipaksarkar.in/)",
Expand Down
2 changes: 1 addition & 1 deletion src/number-format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default class NumberFormat {
if (this.isNull()) {
return this.options.nullValue
}
if (this.options.reverseFill && this.realNumber() <= 0) {
if (this.options.reverseFill && this.realNumber() === 0) {
return this.options.nullValue
}
return this.sign() + this.realNumber()
Expand Down

0 comments on commit b981c21

Please sign in to comment.