diff --git a/SpotifyKeyDumper/Utils.cpp b/SpotifyKeyDumper/Utils.cpp index e18f937..c512887 100644 --- a/SpotifyKeyDumper/Utils.cpp +++ b/SpotifyKeyDumper/Utils.cpp @@ -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;