Skip to content

Commit

Permalink
replace comma to dot (#1057)
Browse files Browse the repository at this point in the history
In several countries the comma is used as a decimal, the PR will replace the comma with a dot.
  • Loading branch information
Ludy87 committed Apr 9, 2024
1 parent 5564f37 commit 35a4462
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public static Long convertSizeToBytes(String sizeStr) {
}

sizeStr = sizeStr.trim().toUpperCase();
sizeStr = sizeStr.replace(",", ".").replace(" ", "");
try {
if (sizeStr.endsWith("KB")) {
return (long)
Expand Down

0 comments on commit 35a4462

Please sign in to comment.