diff --git a/lib/auto_linker/parser.ex b/lib/auto_linker/parser.ex index ecd4352..1f68733 100644 --- a/lib/auto_linker/parser.ex +++ b/lib/auto_linker/parser.ex @@ -208,7 +208,8 @@ defmodule AutoLinker.Parser do true else tld = host |> String.split(".") |> List.last() - tld in @tlds + + Enum.member?(@tlds, tld) end end