diff options
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r-- | protocols/Tox/src/tox_search.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_search.cpp b/protocols/Tox/src/tox_search.cpp index 96f3de2dc6..9b398e1fd8 100644 --- a/protocols/Tox/src/tox_search.cpp +++ b/protocols/Tox/src/tox_search.cpp @@ -86,7 +86,8 @@ HANDLE CToxProto::OnSearchAdvanced(HWND owner) wchar_t text[MAX_PATH];
GetDlgItemText(owner, IDC_SEARCH, text, _countof(text));
- const std::string query = T2Utf(text).str();
+ std::string query = T2Utf(text).str();
+ query = std::regex_replace(query, std::regex("\\s"), "");
if (std::regex_search(query, match, regex)) {
PROTOSEARCHRESULT psr = { sizeof(psr) };
psr.flags = PSR_UTF8;
|