jquery-glob
jquery-glob copied to clipboard
$.format(Infinity, 'n0', 'nl-NL') yields "In.fin.ity"
$.format
formats Infinity
in a very peculiar way. I haven't checked it in other cultures, but I suspect $.format(Infinity, 'n0', 'en-GB')
would yield "In.fin.ity"
.
Although I don't think a lot of people will have to deal with values as Inifinity
or -Inifinity
(which also yields "In.fin.ity"
), this is still a bug.
More erroneous behavior: > $.format(-Infinity, 'n2') "In.fin.ity,00"