Open GoogleCodeExporter opened 9 years ago
Greetings,
We were experimenting the same issue and resolved it by removing the following
if statement (keep the code inside):
// if the number is valid use it, otherwise clean it
if (isNaN(num)) {
...
}
Although this solution worked for us, we are unsure if this fix will cause
problems with other regions and we encourage further testing.
Note for the author: In a (more or less) few words, the problem occurs when you
got no symbol defined or its empty and the digitGroupSymbol is not the default
[,].
When these conditions are satisfied, isNaN(num) will return true either when
the symbol is supplied OR (if you choose to omit the symbol or supply a blank
one), the digitGroupSymbol equals the arithmetic one [,] (since 1,0000 is not
considered a number while 1.0000 is), therefore running the much needed RegExp
cleanup expression for the number.
Cheers and thanks the author for this great plugin.
Original comment by sot...@gmail.com
on 6 Oct 2010 at 8:36
Original comment by bdewe...@hotmail.com
on 3 Oct 2011 at 1:44
Original issue reported on code.google.com by
woo...@gmail.com
on 5 Aug 2010 at 7:20