openexchangerates / accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.
http://openexchangerates.github.io/accounting.js
MIT License
4.96k stars 530 forks source link

Updated to handle embedded or unmatched parens. #136

Open ErinsMatthew opened 8 years ago

ErinsMatthew commented 8 years ago

Right now, any parens in the input value will be converted into a negative value. This update excludes embedded or unmatched parens from this match.