hopefully fix is_valid_tld?/2
This commit is contained in:
parent
fbfa3d0da2
commit
48f87d44cf
1 changed files with 2 additions and 1 deletions
|
@ -208,7 +208,8 @@ defmodule AutoLinker.Parser do
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
tld = host |> String.split(".") |> List.last()
|
tld = host |> String.split(".") |> List.last()
|
||||||
tld in @tlds
|
|
||||||
|
Enum.member?(@tlds, tld)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Reference in a new issue