ValidCurrency rule regex isn't quite right - I think.

We noticed that when we applied the ValidCurrency validation rule to the grid that we COULD enter values like:
02
2.3
10
but NOT: 2
A single digit value was not allowed, which doesn’t seem right. On looking at the regex rule for this, I believe it should be changed from:
^$?\s?\d+?[.,,]?\d+?\s?$?$
to
^$?\s?\d*?[.,,]?\d+?\s?$?$

Note the \d* instead of \d+.

You are right! Same fix will be added into the main codebase.

Thanks for the confirmation, I’m only just beginning to learn regex, so it’s nice to have someone else check my work. lol :slight_smile: