match *.[mM][iI][dD][iI]$ as well as *.[mM][iI][dD] files when looking for MIDI files
This commit is contained in:
parent
0d05cf3a0c
commit
25a7748068
@ -454,7 +454,7 @@ SMFSource::safe_midi_file_extension (const string& file)
|
||||
const int nmatches = 2;
|
||||
regmatch_t matches[nmatches];
|
||||
|
||||
if (compile && regcomp (&compiled_pattern, "[mM][iI][dD]$", REG_EXTENDED)) {
|
||||
if (compile && regcomp (&compiled_pattern, "[mM][iI][dD][iI]?$", REG_EXTENDED)) {
|
||||
return false;
|
||||
} else {
|
||||
compile = false;
|
||||
|
Loading…
Reference in New Issue
Block a user