From 6120142c97523c1b06130994c460b74e9b49550e Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Wed, 5 Feb 2020 18:37:08 -0330 Subject: [PATCH] Make search for format in ROM filename case-insensitive. --- src/emucore/Console.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emucore/Console.cxx b/src/emucore/Console.cxx index 0977386af..b18cf0098 100644 --- a/src/emucore/Console.cxx +++ b/src/emucore/Console.cxx @@ -290,7 +290,7 @@ string Console::formatFromFilename() const { try { - std::regex rgx(Pattern[i][0]); + std::regex rgx(Pattern[i][0], std::regex_constants::icase); if(std::regex_search(filename, rgx)) return Pattern[i][1]; }