From 17021e167ca4e7ba7dcff0a54c631d068fdef998 Mon Sep 17 00:00:00 2001 From: Jari Matilainen Date: Fri, 13 Jan 2017 16:44:12 +0000 Subject: [PATCH] Make the prefix matching case insensitive --- src/core/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/misc.c b/src/core/misc.c index 74399072..83e11e29 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -178,7 +178,7 @@ gboolean strarray_find_prefix(char **array, const char *item) index = 0; for (tmp = array; *tmp != NULL; tmp++, index++) { - if (g_str_has_prefix(*tmp, item)) + if (g_str_has_prefix(g_ascii_strdown(*tmp, -1), g_ascii_strdown(item, -1))) return TRUE; }