Ex_Money v3.2.4 Release Notes
-
๐ This is the changelog for Money v3.2.4 released on February 13th, 2019. For older changelogs please consult the release tag on GitHub
๐ Bug Fixes
- Updates to ex_cldr_currencies version 2.1.2 which correctly removes duplicate currency strings when the same string referred to different currency codes. See the changelog for further detail.
โจ Enhancements
- โ Adds a
:fuzzy
option toMoney.parse/2
that usesString.jaro_distance/2
to help determine if the provided currency text can be resolved as a currency code. For example: ``` iex> Money.parse("100 eurosports", fuzzy: 0.8) #Money<:EUR, 100>
iex> Money.parse("100 eurosports", fuzzy: 0.9) {:error, {Money.Invalid, "Unable to create money from \"eurosports\" and \"100\""}}