mirror of https://github.com/stella-emu/stella.git
Make search for format in ROM filename case-insensitive.
This commit is contained in:
parent
16e1f256c2
commit
6120142c97
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue