Dieser Commit ist enthalten in:
Ursprung
611bc58576
Commit
74866de040
@ -260,11 +260,14 @@ public class SWCommandUtils {
|
||||
|
||||
private static <T> Function<String, T> numberMapper(Function<String, T> mapper) {
|
||||
return s -> {
|
||||
if (s.equalsIgnoreCase("nan")) return null;
|
||||
try {
|
||||
if (s.equalsIgnoreCase("nan")) {
|
||||
return null;
|
||||
}
|
||||
return mapper.apply(s);
|
||||
} catch (NumberFormatException e) {
|
||||
// Ignored
|
||||
}
|
||||
try {
|
||||
return mapper.apply(s.replace(',', '.'));
|
||||
} catch (NumberFormatException e) {
|
||||
return null;
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren