cleanup
This commit is contained in:
parent
cfc6355bbe
commit
82ba30c658
1 changed files with 2 additions and 4 deletions
|
@ -59,7 +59,7 @@ defmodule AutoLinker.Builder do
|
|||
|> truncate(Map.get(opts, :truncate, false))
|
||||
|
||||
attrs = format_attrs(attrs)
|
||||
"<a #{attrs}>" <> url <> "</a>"
|
||||
"<a #{attrs}>#{url}</a>"
|
||||
end
|
||||
|
||||
defp format_attrs(attrs) do
|
||||
|
@ -93,9 +93,7 @@ defmodule AutoLinker.Builder do
|
|||
|
||||
defp strip_prefix(url, _), do: url
|
||||
|
||||
def create_phone_link([], buffer, _) do
|
||||
buffer
|
||||
end
|
||||
def create_phone_link([], buffer, _), do: buffer
|
||||
|
||||
def create_phone_link([h | t], buffer, opts) do
|
||||
create_phone_link(t, format_phone_link(h, buffer, opts), opts)
|
||||
|
|
Reference in a new issue