summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Wang <R-Wang97@users.noreply.github.com>2016-08-22 07:14:29 -0700
committerChristopher Speller <crspeller@gmail.com>2016-08-22 10:14:29 -0400
commite8de443e17a2e8b6fd515aa1e3288c6bd491172e (patch)
tree74d3dbdd672ad5ead7c2d39361070600f8135396
parent06cf7c34a3e474ec3bb7f0f1399a93f458fe20f7 (diff)
downloadchat-e8de443e17a2e8b6fd515aa1e3288c6bd491172e.tar.gz
chat-e8de443e17a2e8b6fd515aa1e3288c6bd491172e.tar.bz2
chat-e8de443e17a2e8b6fd515aa1e3288c6bd491172e.zip
Slash command in uppercase shows autocomplete (#3840)
-rw-r--r--webapp/components/suggestion/command_provider.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/suggestion/command_provider.jsx b/webapp/components/suggestion/command_provider.jsx
index 58b77a331..ea89df98d 100644
--- a/webapp/components/suggestion/command_provider.jsx
+++ b/webapp/components/suggestion/command_provider.jsx
@@ -35,7 +35,7 @@ class CommandSuggestion extends Suggestion {
export default class CommandProvider {
handlePretextChanged(suggestionId, pretext) {
if (pretext.startsWith('/')) {
- AsyncClient.getSuggestedCommands(pretext, suggestionId, CommandSuggestion, pretext);
+ AsyncClient.getSuggestedCommands(pretext.toLowerCase(), suggestionId, CommandSuggestion, pretext.toLowerCase());
}
}
}