uqbar-project / arena

MMVC framework
http://arena.uqbar-project.org/
4 stars 2 forks source link

ConversorSincronizado comma is not working #47

Open mosjim opened 7 years ago

mosjim commented 7 years ago

You put 1.1 but you get 11

imagen

fdodino commented 7 years ago

In this case it should consider locale, so I'll test 1,1

fdodino commented 7 years ago

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: