2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: Search in non-english should have a smaller minimum

This commit is contained in:
Robin Ward 2016-08-09 15:20:28 -04:00
parent fd3a8583dd
commit cc366d5a60
2 changed files with 3 additions and 1 deletions

View file

@ -178,7 +178,7 @@ class Search
@valid = false
return
end
@term = terms.join(' ')
@term = terms.join(' ') if @term.include?(' ')
end
# If the term is a number or url to a topic, just include that topic