Skip to content
Snippets Groups Projects

Fix large integer queries

Merged Daniel Hornung requested to merge f-fix-145-large-integer into dev
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -134,7 +134,8 @@ public class POV implements EntityFilterInterface {
} else {
try {
// Doubles are allowed without dots, for example when the integer overflows.
final Pattern dp = Pattern.compile("^(-?[0-9]+(?:\\.)?(?:[0-9]+))\\s*([^-]*)$");
// final Pattern dp = Pattern.compile("^(-?[0-9]+(?:\\.)?(?:[0-9]+))\\s*([^-]*)$");
final Pattern dp = Pattern.compile("^(-?[0-9]+(?:\\.[0-9]+))\\s*([^-]*)$");
final Matcher m = dp.matcher(value);
if (!m.matches()) {
throw new NumberFormatException();
Loading