From ec8a1536a7e6b61089fd3d5230a2a8f0139cc3b1 Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Fri, 8 Feb 2019 16:50:18 +0700 Subject: [PATCH] improve tlds import --- lib/auto_linker/parser.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auto_linker/parser.ex b/lib/auto_linker/parser.ex index b0c4cda..802ec79 100644 --- a/lib/auto_linker/parser.ex +++ b/lib/auto_linker/parser.ex @@ -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