Make search for format in ROM filename case-insensitive.

This commit is contained in:
Stephen Anthony 2020-02-05 18:37:08 -03:30
parent 16e1f256c2
commit 6120142c97
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ string Console::formatFromFilename() const
{ {
try try
{ {
std::regex rgx(Pattern[i][0]); std::regex rgx(Pattern[i][0], std::regex_constants::icase);
if(std::regex_search(filename, rgx)) if(std::regex_search(filename, rgx))
return Pattern[i][1]; return Pattern[i][1];
} }