diff --git a/lib/linkify/builder.ex b/lib/linkify/builder.ex index 0ce3661..e15be81 100644 --- a/lib/linkify/builder.ex +++ b/lib/linkify/builder.ex @@ -66,8 +66,7 @@ defmodule Linkify.Builder do defp format_attrs(attrs) do attrs - |> Enum.map(fn {key, value} -> ~s(#{key}="#{value}") end) - |> Enum.join(" ") + |> Enum.map_join(" ", fn {key, value} -> ~s(#{key}="#{value}") end) end defp truncate(url, false), do: url