mirror of
https://github.com/chainreactors/spray.git
synced 2025-09-15 19:50:18 +00:00
修复空行的bug
This commit is contained in:
parent
e48390a4be
commit
04d8a5d0e7
@ -170,11 +170,11 @@ func (opt *Option) PrepareRunner() (*Runner, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
urls = strings.Split(string(content), "\n")
|
urls = strings.Split(strings.TrimSpace(string(content)), "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
r.URLList = urls
|
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
|
// prepare word
|
||||||
dicts := make([][]string, len(opt.Dictionaries))
|
dicts := make([][]string, len(opt.Dictionaries))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user