Browse Source

Append * on simple query like "somephrase23" or "attribute23: somephrase23"

Martin Edenhofer 7 years ago
parent
commit
78a98ab51e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/search_index_backend.rb

+ 1 - 1
lib/search_index_backend.rb

@@ -201,7 +201,7 @@ return search result
     # add * on simple query like "somephrase23" or "attribute: somephrase23"
     if query.present?
       query.strip!
-      if query =~ /^([[:alpha:],0-9]+|[[:alpha:]]+\:\s+[[:alpha:],0-9]+)$/
+      if query =~ /^([[:alpha:],0-9]+|[[:alpha:],0-9]+\:\s+[[:alpha:],0-9]+)$/
         query += '*'
       end
     end