Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Current
- Fix parsing multiple delimeters in the amount, after BigDecimal updates
- Fix unused variable `possible_major` Ruby warning.

## 1.13.0
- **Breaking change**: check ISO currency code validity when parsing strings with `to_money`
Expand Down
2 changes: 1 addition & 1 deletion lib/monetize/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def minor_has_correct_dp_for_currency_subunit?(minor, currency)

def extract_major_minor_with_single_delimiter(num, currency, delimiter)
if expect_whole_subunits?
possible_major, possible_minor = split_major_minor(num, delimiter)
_possible_major, possible_minor = split_major_minor(num, delimiter)
if minor_has_correct_dp_for_currency_subunit?(possible_minor, currency)
split_major_minor(num, delimiter)
else
Expand Down