You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may be some trouble with the regular expression that splits the amount and the currency, since as you can see in the first error, it is interpreting the € as <<130, 172>>.
The text was updated successfully, but these errors were encountered:
Apologies for the inconvenience and thanks for the report. I have fixed on master and published version 3.2.3 to hex.
The issue was that I wasn't setting the :unicode flag on the regex used to parse the currency string (pretty much as you suspected). I've added a test for this particular case.
I am trying to save a money field from a Phoenix input. Everything works properly except for the validation when I use Euros.
I've traced the problem to the
Money.parse
function.It looks that the
€
symbol is correctly associated with theEUR
currency:It may be some trouble with the regular expression that splits the amount and the currency, since as you can see in the first error, it is interpreting the
€
as<<130, 172>>
.The text was updated successfully, but these errors were encountered: