bodar / totallylazy.js

TotallyLazy.js
Apache License 2.0
8 stars 5 forks source link

Allow 'P' for PHP currency parsing #25

Open obean opened 2 years ago

obean commented 2 years ago

Problem:

flexiblemoneyparser will return {amount: 2400, currency 'BWP'} when parsing the string 'P2400' but many PHP prices are listen with P as a prefix.

Can we add 'P' to the possible prefixes list for PHP currency