From 25a774806820542fe10f530bc51254acfc528ff5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 14 Mar 2013 22:31:32 -0400 Subject: [PATCH] match *.[mM][iI][dD][iI]$ as well as *.[mM][iI][dD] files when looking for MIDI files --- libs/ardour/smf_source.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;