summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 3afc7cc..6fe702d 100644
--- a/main.go
+++ b/main.go
@@ -51,7 +51,7 @@ func postIndex() http.Handler {
Query: r.FormValue("query"),
Invalid: true,
}
- query := strings.ToUpper(data.Query)
+ query := strings.TrimSpace(strings.ToUpper(data.Query))
for _, w := range words {
if w == query {
data.Invalid = false