Empty strings supported in parse_bban

This commit is contained in:
Danil Negrienko 2024-05-14 23:22:16 -04:00
parent dc1b802c77
commit 6ec94020ef
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ defmodule IbanEx.Parser do
|> parse_bban_by_regex(bban_string)
end
defp parse_bban_by_regex(_regex, nil), do: %{}
defp parse_bban_by_regex(regex, bban_string) do
case Regex.named_captures(regex, bban_string) do
map when is_map(map) ->