function setupPoints(numberformat, wrongFormat) {
- decpoint = numberformat.substring((numberformat.substring(1, 2).match(/\.|\,/) ? 5 : 4), (numberformat.substring(1, 2).match(/\.|\,/) ? 6 : 5));
- if (numberformat.substring(1, 2).match(/\.|\,/)) {
+ decpoint = numberformat.substring((numberformat.substring(1, 2).match(/\.|\,|\'/) ? 5 : 4), (numberformat.substring(1, 2).match(/\.|\,|\'/) ? 6 : 5));
+ if (numberformat.substring(1, 2).match(/\.|\,|\'/)) {
thpoint = numberformat.substring(1, 2);
}
else {
if(thpoint && thpoint == '.'){
test_val = test_val.replace(/\./g, '');
}
+ if(thpoint && thpoint == "'"){
+ test_val = test_val.replace(/\'/g, '');
+ }
if(decpoint && decpoint == ','){
test_val = test_val.replace(/,/g, '.');
}