replace comma to dot (#1057)

In several countries the comma is used as a decimal, the PR will replace the comma with a dot.
This commit is contained in:
Ludy
2024-04-09 18:47:53 +02:00
committed by GitHub
parent 5564f378e5
commit 35a4462a86

View File

@@ -88,6 +88,7 @@ public class GeneralUtils {
} }
sizeStr = sizeStr.trim().toUpperCase(); sizeStr = sizeStr.trim().toUpperCase();
sizeStr = sizeStr.replace(",", ".").replace(" ", "");
try { try {
if (sizeStr.endsWith("KB")) { if (sizeStr.endsWith("KB")) {
return (long) return (long)