logo

auto_linker

AutoLinker-shim, based on https://git.pleroma.social/pleroma/auto_linker git clone https://hacktivis.me/git/auto_linker.git
commit: d9859f8aabb7ef2b54b6cc85560bc456cd4858d1
parent cef4fe335cbfb4625340f1bc2355f421345d45a8
Author: Egor Kislitsyn <egor@kislitsyn.com>
Date:   Wed, 12 Jun 2019 15:33:03 +0700

Fix credo warnings

Diffstat:

Mlib/auto_linker/parser.ex4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/auto_linker/parser.ex b/lib/auto_linker/parser.ex @@ -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