From 2e99d6b3f24645894220d415427df5dad191f547 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Fri, 9 Aug 2019 22:12:06 -0400 Subject: [PATCH] don't filter useful things from google translate --- extensions/googletranslate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/googletranslate.cpp b/extensions/googletranslate.cpp index 125ac0a..dda1a1a 100644 --- a/extensions/googletranslate.cpp +++ b/extensions/googletranslate.cpp @@ -100,7 +100,7 @@ std::wstring GetTranslationUri(const std::wstring& text, unsigned TKK) bool IsHash(const std::wstring& result) { - return std::all_of(result.begin(), result.end(), [](auto ch) { return (ch >= L'0' && ch <= L'9') || (ch >= L'a' && ch <= L'z'); }); + return result.size() == 32 && std::all_of(result.begin(), result.end(), [](auto ch) { return (ch >= L'0' && ch <= L'9') || (ch >= L'a' && ch <= L'z'); }); } std::pair Translate(const std::wstring& text)