From 7e0672e03529307c70ce8e9b33c0c16beca608b4 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Tue, 17 Jun 2014 00:59:01 +0200 Subject: [PATCH] Case insensitive tab completion --- client/js/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/js/chat.js b/client/js/chat.js index 43cc60d0..f42b532e 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -345,8 +345,8 @@ $(function() { }); return $.grep( words, - function(cmd) { - return !cmd.indexOf(word); + function(w) { + return !w.toLowerCase().indexOf(word.toLowerCase()); } ); }