summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/stores')
-rw-r--r--webapp/stores/suggestion_store.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/stores/suggestion_store.jsx b/webapp/stores/suggestion_store.jsx
index a0cd88370..5a8ea3006 100644
--- a/webapp/stores/suggestion_store.jsx
+++ b/webapp/stores/suggestion_store.jsx
@@ -227,8 +227,8 @@ class SuggestionStore extends EventEmitter {
switch (type) {
case ActionTypes.SUGGESTION_PRETEXT_CHANGED:
- // Clear the suggestions if the pretext is empty or has whitespace
- if (other.pretext === '' || (/\s/g.test(other.pretext))) {
+ // Clear the suggestions if the pretext is empty or ends with whitespace
+ if (other.pretext === '') {
this.clearSuggestions(id);
}