From 04d8a5d0e7de10a35ef0a46cefd606e4c796da7d Mon Sep 17 00:00:00 2001 From: M09Ic Date: Mon, 21 Nov 2022 11:52:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BA=E8=A1=8C=E7=9A=84bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/option.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/option.go b/internal/option.go index 97bbe97..23bb935 100644 --- a/internal/option.go +++ b/internal/option.go @@ -170,11 +170,11 @@ func (opt *Option) PrepareRunner() (*Runner, error) { if err != nil { return nil, err } - urls = strings.Split(string(content), "\n") + urls = strings.Split(strings.TrimSpace(string(content)), "\n") } r.URLList = urls - logs.Log.Importantf("load %d urls from %s", len(urls), urlfrom) + logs.Log.Importantf("Loaded %d urls from %s", len(urls), urlfrom) // prepare word dicts := make([][]string, len(opt.Dictionaries))