mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Be case insensitive for file extensions
This commit is contained in:
parent
d337e25fb3
commit
2ab57e7799
1 changed files with 1 additions and 1 deletions
2
noice.c
2
noice.c
|
@ -193,7 +193,7 @@ openwith(char *file)
|
||||||
|
|
||||||
for (i = 0; i < LEN(assocs); i++) {
|
for (i = 0; i < LEN(assocs); i++) {
|
||||||
if (regcomp(®ex, assocs[i].regex,
|
if (regcomp(®ex, assocs[i].regex,
|
||||||
REG_NOSUB | REG_EXTENDED) != 0)
|
REG_NOSUB | REG_EXTENDED | REG_ICASE) != 0)
|
||||||
continue;
|
continue;
|
||||||
if (regexec(®ex, file, 0, NULL, 0) == 0) {
|
if (regexec(®ex, file, 0, NULL, 0) == 0) {
|
||||||
bin = assocs[i].bin;
|
bin = assocs[i].bin;
|
||||||
|
|
Loading…
Add table
Reference in a new issue