Commit ef4d29b6 authored by Heiko Reese's avatar Heiko Reese
Browse files

Trim whitespace frmo query in public searches. Fixes #36.

parent 04cbab5f
......@@ -193,6 +193,8 @@ func isMn(r rune) bool {
func CleanupQueryString(query string) string {
// transform to lowercase
query = strings.ToLower(query)
// remove leading and trailing white space
query = strings.TrimSpace(query)
// DNF-Rules
query = strings.Replace(query, "ä", "ae", -1)
query = strings.Replace(query, "ö", "oe", -1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment