Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math widget do not work for thousands with space delimiter #1853

Open
mapy-hsrs opened this issue Sep 30, 2024 · 0 comments
Open

Math widget do not work for thousands with space delimiter #1853

mapy-hsrs opened this issue Sep 30, 2024 · 0 comments

Comments

@mapy-hsrs
Copy link

Hello, for example the sum of numbers 2 084.05 + 1 367.60 = 3.00 with setting data-math-mask='# ##0.00' (in last version of jQuery and Tablesorter). So just the sum of numbers before the space. The sum of numbers less than a thousand, or without spaces, is correct. Sorting and filtering is correct via custom parser as:
$.tablesorter.addParser({
id: 'thousands',
is: function (s) {
return false;
},
format: function (s) {
return s.replace(/\s+/g, '').replace(/,/g, '.');
},
type: 'numeric'
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant