Open otovalek opened 1 year ago
When the value has no decimal part, s.length is 1 and thousandSeparator is not applied. The s.length == 2 check is excessive here, as well as the s[0].length > 3. The function behaves fine without it.
value
s.length
thousandSeparator
s.length == 2
s[0].length > 3
Fixes fooplugins/FooTable#894
When the
value
has no decimal part,s.length
is 1 andthousandSeparator
is not applied. Thes.length == 2
check is excessive here, as well as thes[0].length > 3
. The function behaves fine without it.Fixes fooplugins/FooTable#894