diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-14 22:31:32 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-14 22:31:32 -0400 |
commit | 25a774806820542fe10f530bc51254acfc528ff5 (patch) | |
tree | a8455e1336363edc1029cff1357696ac12a93988 /libs | |
parent | 0d05cf3a0ccc97005b3b9f7649c131c96a97f9e1 (diff) |
match *.[mM][iI][dD][iI]$ as well as *.[mM][iI][dD] files when looking for MIDI files
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/smf_source.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc index 5b42852923..830fd75fdf 100644 --- a/libs/ardour/smf_source.cc +++ b/libs/ardour/smf_source.cc @@ -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; |