diff --git a/lib/iban_ex/parser.ex b/lib/iban_ex/parser.ex index 2bd45f5..2c29ebb 100644 --- a/lib/iban_ex/parser.ex +++ b/lib/iban_ex/parser.ex @@ -88,7 +88,7 @@ def parse_bban(bban_string, country_code, incomplete: false) do end defp parse_bban_by_country_rules(country_module, bban_string) do - for {field, rule} <- country_module.rules, + for {field, rule} <- country_module.rules(), into: %{}, do: {field, normalize_and_slice(bban_string, rule.range)} end