fix evaluator
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-06-13 14:00:24 +00:00
parent 5ceffc07ce
commit e86bec109f
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -47,8 +47,9 @@ func loadBangs() (bangs map[string]string) {
func buildSearchURL(template string, query string) (searchUrl string) {
searchUrl = strings.Replace(template, "%s", url.QueryEscape(query), 1)
searchUrl = strings.Replace(template, "%S", query, 1)
return
searchUrl = strings.Replace(searchUrl, "%S", query, 1)
log.Print(searchUrl)
return searchUrl
}
func parseBang(searchQuery string) (bang string, query string) {