From e86bec109f892f5217ab404236633275c04c0397 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 13 Jun 2019 14:00:24 +0000 Subject: [PATCH] fix evaluator --- evaluator/evaluator.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/evaluator/evaluator.go b/evaluator/evaluator.go index 03234b3..f19ab07 100644 --- a/evaluator/evaluator.go +++ b/evaluator/evaluator.go @@ -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) {