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)
closecnt = graphemes |> Enum.count(fn x -> x == ")" end)
cond do
opencnt == closecnt -> :leading_only
true -> :next
if opencnt == closecnt do
:leading_only
else
:next
end
end