This commit is contained in:
Mark Felder 2021-01-27 14:42:05 -06:00
parent aec97fac71
commit a7e86d3381

View file

@ -237,9 +237,10 @@ defmodule Linkify.Parser do
opencnt = graphemes |> Enum.count(fn x -> x == "(" end) opencnt = graphemes |> Enum.count(fn x -> x == "(" end)
closecnt = graphemes |> Enum.count(fn x -> x == ")" end) closecnt = graphemes |> Enum.count(fn x -> x == ")" end)
cond do if opencnt == closecnt do
opencnt == closecnt -> :leading_only :leading_only
true -> :next else
:next
end end
end end