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 f3e25df commit f877364
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions WeaselDeployer/DictManagementDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
#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 f877364

Please sign in to comment.