Skip to content

Commit

Permalink
fix muti keywords search
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Jul 21, 2018
1 parent 928aa46 commit d65495c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/sshw/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ func choose(parent, trees []*sshw.Node) *sshw.Node {
for _, key := range strings.Split(input, " ") {
key = strings.TrimSpace(key)
if key != "" {
if strings.Contains(content, key) {
return true
if !strings.Contains(content, key) {
return false
}
}
}
return true
} else {
if strings.Contains(content, input) {
return true
Expand Down

0 comments on commit d65495c

Please sign in to comment.