From 3b739e1ca51100e64e88daf2cd80b0929556998d Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Mon, 12 Sep 2016 10:00:24 -0400
Subject: Made search autocomplete for channels and users case insensitive
 (#3965)

---
 webapp/components/suggestion/search_user_provider.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/components/suggestion/search_user_provider.jsx')

diff --git a/webapp/components/suggestion/search_user_provider.jsx b/webapp/components/suggestion/search_user_provider.jsx
index 7a5bdabf1..e33c206a7 100644
--- a/webapp/components/suggestion/search_user_provider.jsx
+++ b/webapp/components/suggestion/search_user_provider.jsx
@@ -35,7 +35,7 @@ class SearchUserSuggestion extends Suggestion {
 
 export default class SearchUserProvider {
     handlePretextChanged(suggestionId, pretext) {
-        const captured = (/\bfrom:\s*(\S*)$/i).exec(pretext);
+        const captured = (/\bfrom:\s*(\S*)$/i).exec(pretext.toLowerCase());
         if (captured) {
             const usernamePrefix = captured[1];
 
-- 
cgit v1.2.3-1-g7c22

