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

This commit is contained in:
Martin Edenhofer 2017-08-24 01:00:10 +02:00
parent e81d871b01
commit 78a98ab51e

View file

@ -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