Skip to content
Snippets Groups Projects
Commit 82ba30c6 authored by minibikini's avatar minibikini
Browse files

cleanup

parent cfc6355b
No related branches found
No related tags found
4 merge requests!10Improve Parser,!9Improve detection of URLs and Asian scripts,!8Improve CI,!6Fix link text
...@@ -59,7 +59,7 @@ defmodule AutoLinker.Builder do ...@@ -59,7 +59,7 @@ defmodule AutoLinker.Builder do
|> truncate(Map.get(opts, :truncate, false)) |> truncate(Map.get(opts, :truncate, false))
attrs = format_attrs(attrs) attrs = format_attrs(attrs)
"<a #{attrs}>" <> url <> "</a>" "<a #{attrs}>#{url}</a>"
end end
defp format_attrs(attrs) do defp format_attrs(attrs) do
...@@ -93,9 +93,7 @@ defmodule AutoLinker.Builder do ...@@ -93,9 +93,7 @@ defmodule AutoLinker.Builder do
defp strip_prefix(url, _), do: url defp strip_prefix(url, _), do: url
def create_phone_link([], buffer, _) do def create_phone_link([], buffer, _), do: buffer
buffer
end
def create_phone_link([h | t], buffer, opts) do def create_phone_link([h | t], buffer, opts) do
create_phone_link(t, format_phone_link(h, buffer, opts), opts) create_phone_link(t, format_phone_link(h, buffer, opts), opts)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment