Skip to content

Commit

Permalink
fix presentation of negative values in combination with thousandsSepa…
Browse files Browse the repository at this point in the history
…rator
  • Loading branch information
sal0max committed Nov 24, 2020
1 parent b88208a commit de633fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ fun String.humanReadable(thousandsSeparator: Char, decimalSeparator: Char): Stri
sb.append(thousandsSeparator)
sb.append(c)
}
return sb.toString().reversed().replace("- ", "-")
return sb.toString().reversed()
.replace("-$thousandsSeparator", "-") // (- 278,57 -> -258,57) or (-.278,57 -> -258,57)
}

return if (this.contains('.')) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<string name="changelog" translatable="false"><b><big>1.1.1</big></b>
\n
\n• Fixed a typo
\n• Minor improvements (typo \'n stuff)
\n
\n<b><big>1.1.0</big></b>
\n
Expand Down
2 changes: 1 addition & 1 deletion fastlane/metadata/android/en-US/changelogs/10101.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* fixed a typo
* Minor improvements (typo \'n stuff)

0 comments on commit de633fa

Please sign in to comment.