Closed ricobl closed 4 years ago
@ricobl thanks for noticing! The regexp used to detect a symbol that is at the beginning of a string or just after a sign. We probably need to restrict it to fix the issue you found… I'll have a look shortly
No worries @antstorm. Thanks for chasing this.
@ricobl opened a PR to fix the issue ^, hope I'm not missing any weird use-cases
@ricobl opened a PR to fix the issue ^, hope I'm not missing any weird use-cases
Looks good, I made a review there. Thanks @antstorm.
The new version (1.9.4) should be out now. Thanks again for bringing this up 👍
Awesome, thanks for the quick release.
After the
1.9.3
release, parsing any iso code ending with anR
returns currency as ZAR whenassume_from_symbol
is on as demonstrated here:https://github.com/RubyMoney/monetize/commit/8bfb079ef3664baee2d0fe62702d57e727b1c96f is the only code change in that release, so it has probably something to do with that regex. The last char on the iso code seems to be matching the symbol.