fix: create intext tag

pull/3/head
Raphaël 2020-03-16 17:43:44 +00:00 committed by GitHub
parent ec50587ca8
commit 11131dc737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ const (
extTag = "ext:"
excludeTag = "-"
intitleTag = "intitle:"
intextTag = "intext:"
)
// GoogleSearch is the Google implementation for Dorkgen
@ -65,7 +66,7 @@ func (e *GoogleSearch) Or() *GoogleSearch {
// Intext searches for the occurrences of keywords all at once or one at a time.
func (e *GoogleSearch) Intext(text string) *GoogleSearch {
e.tags = append(e.tags, concat("", text, true))
e.tags = append(e.tags, concat(intextTag, text, true))
return e
}