diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-09-12 10:00:24 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-09-12 10:00:24 -0400 |
commit | 3b739e1ca51100e64e88daf2cd80b0929556998d (patch) | |
tree | c7b896275cc422f32b1fcd0c40e9b72ccaeb9f68 /webapp/components/suggestion/search_channel_provider.jsx | |
parent | b8d6eba7889ac84220badef64a5d0fdccd704f06 (diff) | |
download | chat-3b739e1ca51100e64e88daf2cd80b0929556998d.tar.gz chat-3b739e1ca51100e64e88daf2cd80b0929556998d.tar.bz2 chat-3b739e1ca51100e64e88daf2cd80b0929556998d.zip |
Made search autocomplete for channels and users case insensitive (#3965)
Diffstat (limited to 'webapp/components/suggestion/search_channel_provider.jsx')
-rw-r--r-- | webapp/components/suggestion/search_channel_provider.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/suggestion/search_channel_provider.jsx b/webapp/components/suggestion/search_channel_provider.jsx index 2e60d579f..6513f0f2b 100644 --- a/webapp/components/suggestion/search_channel_provider.jsx +++ b/webapp/components/suggestion/search_channel_provider.jsx @@ -31,7 +31,7 @@ class SearchChannelSuggestion extends Suggestion { export default class SearchChannelProvider { handlePretextChanged(suggestionId, pretext) { - const captured = (/\b(?:in|channel):\s*(\S*)$/i).exec(pretext); + const captured = (/\b(?:in|channel):\s*(\S*)$/i).exec(pretext.toLowerCase()); if (captured) { const channelPrefix = captured[1]; |