From: Alexander Huemer Date: Mon, 4 May 2015 21:19:20 +0000 (+0200) Subject: Be case insensitive for file extensions X-Git-Tag: v1.0~92^2~67 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2ab57e77995749b6c9a5b374128ba0601bfa1cbe;p=nnn.git Be case insensitive for file extensions --- diff --git a/noice.c b/noice.c index 1d34017c..8d7f7f1d 100644 --- a/noice.c +++ b/noice.c @@ -193,7 +193,7 @@ openwith(char *file) for (i = 0; i < LEN(assocs); i++) { if (regcomp(®ex, assocs[i].regex, - REG_NOSUB | REG_EXTENDED) != 0) + REG_NOSUB | REG_EXTENDED | REG_ICASE) != 0) continue; if (regexec(®ex, file, 0, NULL, 0) == 0) { bin = assocs[i].bin;