Support of Non-English Numbers - Validation Plugin

Support of Non-English Numbers - Validation Plugin

Heyoo.

The jQuery Validation Plugin works great fur numbers written like:
  1. 123,456,789.00
but here where I live, we write the numbers like:
  1. 123.456.789,00
so the validation fails.
Here's my suggestion for an improved regex which validates both variations
  1. /^-?(?:\d*(?:(?:,|\.)\d+)?|\d{1,3}(?:(?:\.\d{3})+(?:,\d+)?|(?:,\d{3})+(?:\.\d+)?))$/

Please apply this change.

cu
Mr.Yeah