Fix #427 - don't suggest hashtag if the search value contains a space

th-downstream
Eugen Rochko 8 years ago
parent 58b0fe2f28
commit 73e217d9d7

@ -23,7 +23,7 @@ const normalizeSuggestions = (state, value, accounts) => {
} }
]; ];
if (value.indexOf('@') === -1) { if (value.indexOf('@') === -1 && value.indexOf(' ') === -1) {
newSuggestions.push({ newSuggestions.push({
title: 'hashtag', title: 'hashtag',
items: [ items: [

Loading…
Cancel
Save