Skip to content
Browse files

Should fix issue #24: money_format wrongly formatting hundreds of tho…

…usands
  • Loading branch information...
1 parent 155a7d0 commit 47d821c64b9b11e1b93802cd2e1b28d8ef0f2d65 @kukawski kukawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 functions/strings/money_format.js
View
2 functions/strings/money_format.js
@@ -86,7 +86,7 @@ function money_format (format, number) {
if (mon_grouping[0] < integer.length) {
for (var i = 0, idx = integer.length; i < mon_grouping.length; i++) {
idx -= mon_grouping[i]; // e.g., 3
- if (idx < 0) {
+ if (idx <= 0) {
break;
}
if (filler && idx < fillnum) {

0 comments on commit 47d821c

Please sign in to comment.
Something went wrong with that request. Please try again.