improve tlds import

This commit is contained in:
Egor Kislitsyn 2019-02-08 16:50:18 +07:00
parent 2266370ebf
commit ec8a1536a7

View file

@ -61,7 +61,7 @@ defmodule AutoLinker.Parser do
"ssb://"
]
@tlds "./priv/tlds.txt" |> File.read!() |> String.trim() |> String.split("\n")
@tlds "./priv/tlds.txt" |> File.read!() |> String.split("\n", trim: true)
@default_opts ~w(url)a