mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 17:04:12 +08:00
regex filter doesnt apply to console
This commit is contained in:
parent
90d32c011d
commit
2f43249aa8
@ -24,7 +24,7 @@ BOOL WINAPI DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved
|
|||||||
|
|
||||||
bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo)
|
bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo)
|
||||||
{
|
{
|
||||||
if (w == nullptr) return false;
|
if (w == nullptr || sentenceInfo["hook address"] == -1) return false;
|
||||||
std::lock_guard l(w->m);
|
std::lock_guard l(w->m);
|
||||||
sentence = std::regex_replace(sentence, w->regex, L"");
|
sentence = std::regex_replace(sentence, w->regex, L"");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user