From 8e0e17c59b8fc1bd65b75e3f5578f4556f67afed Mon Sep 17 00:00:00 2001 From: Blu3train Date: Tue, 19 Oct 2021 00:07:57 +0200 Subject: [PATCH] Regex Replacer Extension --- extensions/regexreplacer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/extensions/regexreplacer.cpp b/extensions/regexreplacer.cpp index 6c95e84..342e716 100644 --- a/extensions/regexreplacer.cpp +++ b/extensions/regexreplacer.cpp @@ -35,12 +35,10 @@ BOOL WINAPI DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo) { - //if (!sentenceInfo["current select"] || sentenceInfo["text number"] == 0 || sentence == L"") return false; if (!sentenceInfo["current select"] || sentenceInfo["text number"] == 0) return false; std::ifstream stream(REGEX_REPLACEMENTS_SAVE_FILE, std::ios::binary); BlockMarkupIterator savedFilters(stream, Array{ L"|REGEX|", L"|BECOMES|" }); - //std::vector regexes; concurrency::reader_writer_lock::scoped_lock_read readLock(m); while (auto read = savedFilters.Next()) { const auto& [regex, replacement] = read.value();