Partial BBAN parsing

This commit is contained in:
2024-05-14 23:09:24 -04:00
parent 384b9b7a39
commit dc1b802c77
3 changed files with 55 additions and 10 deletions

View File

@@ -1,6 +1,11 @@
defmodule IbanEx.Commons do
@moduledoc false
@spec blank(nil | binary()) :: nil | binary()
def blank(nil), do: nil
def blank(""), do: nil
def blank(string) when is_binary(string), do: string
@spec normalize(binary()) :: binary()
def normalize(string) do
string