13
0

match *.[mM][iI][dD][iI]$ as well as *.[mM][iI][dD] files when looking for MIDI files

This commit is contained in:
Paul Davis 2013-03-14 22:31:32 -04:00
parent 0d05cf3a0c
commit 25a7748068

View File

@ -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;