osrec/currencyFormatter.js

Library crash when the pattern doesn't contain dots

Frzurita opened this issue · 3 comments

the error is in the line 1179, the var segment should be declare out of if statement. Otherwise the library crash because it is trying to get the length of undefined

osrec commented

Ah, thank you - good spot. We will fix and issue a release shortly :)

Vebby

thanks! great library by the way 👍

osrec commented

Fixed now in latest version (v2.0.0) :)