osrec / currencyFormatter.js

A super simple currency formatting library
MIT License
633 stars 61 forks source link

NaN parsing CVE currency value #38

Open deepak786 opened 4 years ago

deepak786 commented 4 years ago

I have the formatted price in the currency CVE formatted price is 3,000,00 This price is formatted from the android device based on the selected locale.

I'm using the below code to parse the currency

var currency = require("currencyformatter.js");
console.log(currency.parse('3,000,00 ',  { currency: 'CVE' } ));

The above code gives NaN.