From e8de443e17a2e8b6fd515aa1e3288c6bd491172e Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 22 Aug 2016 07:14:29 -0700 Subject: Slash command in uppercase shows autocomplete (#3840) --- webapp/components/suggestion/command_provider.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } } } -- cgit v1.2.3-1-g7c22