Open mosjim opened 7 years ago
In this case it should consider locale, so I'll test 1,1
Tested and you are right:
public class NumericFilter implements TextFilter {
public static String RegExpWithDecimals = "-?[0-9.]+(,[0-9])?";
Should consider comma in first group:
public class NumericFilter implements TextFilter {
public static String RegExpWithDecimals = "-?[0-9.,]+([0-9])?";
And also consider locale:
You put 1.1 but you get 11