From 48f87d44cf588bf177feb0445b05ebcaaab22aac Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Tue, 5 Feb 2019 21:01:45 +0700 Subject: [PATCH] hopefully fix `is_valid_tld?/2` --- lib/auto_linker/parser.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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