Remove leading '\\' from regex to fix it.

This commit is contained in:
hispidence 2023-05-22 23:43:24 +01:00
parent 05a5a47458
commit 96138df360

View file

@ -346,7 +346,7 @@ void EnumerateLegacyTracks()
{
// Capture three-digit filenames, or those which start with three digits.
std::regex upToThreeDigits("\\\\((\\d{1,3})[^\\.]*)");
std::regex upToThreeDigits("((\\d{1,3})[^\\.]*)");
std::smatch result;
for (const auto& file : std::filesystem::directory_iterator{ dir })
{