Skip to content

Commit 2b348f4

Browse files
author
Felipe Marcon
committed
Breaklines in formatter.js
1 parent 5546ffa commit 2b348f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/formatters.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ exports.formatAmount = function (amount) {
2121
amount.substring(amount.length - 2, amount.length),
2222
2
2323
)
24+
2425
let integers = exports.addTrailingZeros(
2526
amount.substring(0, amount.length - 2),
2627
1
@@ -89,9 +90,11 @@ exports.fatorVencimento = function (date) {
8990
const parsedDate = moment(date)
9091
.utc()
9192
.format('YYYY-MM-DD')
93+
9294
const startDate = moment('1997-10-07')
9395
.utc()
9496
.format('YYYY-MM-DD')
97+
9598
return exports.addTrailingZeros(moment(parsedDate).diff(startDate, 'days'), 4)
9699
}
97100

0 commit comments

Comments
 (0)