This commit is contained in:
parent
5ceffc07ce
commit
e86bec109f
|
@ -47,8 +47,9 @@ func loadBangs() (bangs map[string]string) {
|
||||||
|
|
||||||
func buildSearchURL(template string, query string) (searchUrl string) {
|
func buildSearchURL(template string, query string) (searchUrl string) {
|
||||||
searchUrl = strings.Replace(template, "%s", url.QueryEscape(query), 1)
|
searchUrl = strings.Replace(template, "%s", url.QueryEscape(query), 1)
|
||||||
searchUrl = strings.Replace(template, "%S", query, 1)
|
searchUrl = strings.Replace(searchUrl, "%S", query, 1)
|
||||||
return
|
log.Print(searchUrl)
|
||||||
|
return searchUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseBang(searchQuery string) (bang string, query string) {
|
func parseBang(searchQuery string) (bang string, query string) {
|
||||||
|
|
Loading…
Reference in a new issue