Fix artist/album names ending with period crashing program
This commit is contained in:
parent
22ec0303c7
commit
0e2a1ba0ae
@ -103,7 +103,7 @@ std::wstring Utils::FixPathStr(std::wstring str)
|
||||
|
||||
// No forbidden words or ending periods or spaces
|
||||
if (std::regex_match(str, std::wregex(L"^(CON|PRN|AUX|NUL|COM[0-9]|LPT[0-9])$| +$|\\.+$",
|
||||
std::regex_constants::ECMAScript | std::regex_constants::icase)))
|
||||
std::regex_constants::ECMAScript | std::regex_constants::icase)) || str.back() == L'.')
|
||||
str.append(L"_");
|
||||
|
||||
return str;
|
||||
|
Loading…
Reference in New Issue
Block a user