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 22, 2023
1 parent f56f020 commit 4bb6d64
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 4bb6d64

Please sign in to comment.