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)
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue