Commit d9859f8a authored by minibikini's avatar minibikini

Fix credo warnings

parent cef4fe33
Pipeline #13083 passed with stages
in 1 minute and 47 seconds
......@@ -273,13 +273,13 @@ defmodule AutoLinker.Parser do
end
defp parse_link(str, %{scheme: true}) do
Regex.run(@match_scheme, str, capture: [:url]) |> hd()
@match_scheme |> Regex.run(str, capture: [:url]) |> hd()
end
defp parse_link(str, _), do: str
defp strip_parens("(" <> buffer) do
Regex.run(~r/[^\)]*/, buffer) |> hd()
~r/[^\)]*/ |> Regex.run(buffer) |> hd()
end
defp strip_parens(buffer), do: buffer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment