Fix #16895 - Wrong table count on space separated numbers

Fixes: #16895

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-05-10 23:19:06 +02:00
parent 0b868458de
commit aa06d9e680
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -70,7 +70,7 @@ DatabaseStructure.adjustTotals = function () {
// The approximated value contains a preceding ~ (Eg 100 --> ~100)
strRows = strRows.substring(1, strRows.length);
}
strRows = strRows.replace(/[,.]/g, '');
strRows = strRows.replace(/[,.\s]/g, '');
var intRow = parseInt(strRows, 10);
if (! isNaN(intRow)) {
rowsSum += intRow;