mirror of
https://github.com/chainreactors/spray.git
synced 2025-05-06 10:41:21 +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 {
|
||||
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user