mirror of
https://github.com/golang/go
synced 2024-11-21 19:24:45 -07:00
Trim space on input to make searching more robust.
R=rsc, r, gri CC=golang-dev https://golang.org/cl/186255
This commit is contained in:
parent
cd47c903e2
commit
2a57a5c9c7
@ -1157,7 +1157,7 @@ type SearchResult struct {
|
||||
}
|
||||
|
||||
func search(c *http.Conn, r *http.Request) {
|
||||
query := r.FormValue("q")
|
||||
query := strings.TrimSpace(r.FormValue("q"))
|
||||
var result SearchResult
|
||||
|
||||
if index, timestamp := searchIndex.get(); index != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user