hopefully fix is_valid_tld?/2

This commit is contained in:
Egor Kislitsyn 2019-02-05 21:01:45 +07:00
parent fbfa3d0da2
commit 48f87d44cf

View file

@ -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