Credo
This commit is contained in:
parent
aec97fac71
commit
a7e86d3381
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in a new issue