Skip to content

Commit

Permalink
Fixed karust#7
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimu committed Nov 20, 2024
1 parent aeb0616 commit 0449e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func New(browser core.Browser, opts core.SearchEngineOptions) *Google {
gogl := Google{Browser: browser}
opts.Init()
gogl.SearchEngineOptions = opts
gogl.rgxpGetDigits = regexp.MustCompile("\\d")
gogl.rgxpGetDigits = regexp.MustCompile(`\\d`)
return &gogl
}

Expand Down Expand Up @@ -293,7 +293,7 @@ func (gogl *Google) Search(query core.Query) ([]core.SearchResult, error) {
// Get description
text := resEl.MustText()
textSliced := strings.Split(text, "\n")
srchRes.Description = strings.Join(textSliced[4:], "\n")
srchRes.Description = strings.Join(textSliced[:], "\n")

} else {
//fmt.Println(i, attrs)
Expand Down

0 comments on commit 0449e70

Please sign in to comment.