Skip to content

Apply thousandSeparator to integer values#895

Open
otovalek wants to merge 1 commit into
fooplugins:V3from
otovalek:V3
Open

Apply thousandSeparator to integer values#895
otovalek wants to merge 1 commit into
fooplugins:V3from
otovalek:V3

Conversation

@otovalek
Copy link
Copy Markdown

@otovalek otovalek commented Mar 25, 2023

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.

Fixes #894

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

Successfully merging this pull request may close these issues.

Thousands comma separator not showing

1 participant