Skip to content

Commit

Permalink
Fix: Changed digit separator after decimal to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakhar-Agarwal-byte committed Mar 21, 2023
1 parent 6c93389 commit e6f0d1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ fun formatCurrency(amount: String): String {
amount.replace(regex, "\$1,")
} else {
val num = amount.substring(0, dotIdx).replace(regex, "\$1,")
val dec = amount.substring(dotIdx+1).replace(regex, "\$1'")
val dec = amount.substring(dotIdx+1).replace(regex, "\$1 ")
"$num.$dec"
}
}
Expand Down

0 comments on commit e6f0d1b

Please sign in to comment.