Skip to content

Commit

Permalink
remove unnecessary regex
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Apr 21, 2024
1 parent 872d217 commit 1c775f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions WeaselDeployer/DictManagementDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
#include <WeaselUtility.h>
#include <rime_api.h>
#include "WeaselDeployer.h"
#include <regex>

void static OpenFolderAndSelectItem(std::wstring filepath) {
filepath = std::regex_replace(filepath, std::wregex(L"/"), L"\\");
std::wstring directory = std::filesystem::path(filepath).parent_path();
std::wstring directory = std::filesystem::path(filepath).parent_path().wstring();

HRESULT hr;
hr = CoInitializeEx(0, COINIT_MULTITHREADED);
Expand Down

0 comments on commit 1c775f2

Please sign in to comment.