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)