don't filter useful things from google translate

This commit is contained in:
Akash Mozumdar 2019-08-09 22:12:06 -04:00
parent 60372a6b8a
commit 2e99d6b3f2

View File

@ -100,7 +100,7 @@ std::wstring GetTranslationUri(const std::wstring& text, unsigned TKK)
bool IsHash(const std::wstring& result) 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<bool, std::wstring> Translate(const std::wstring& text) std::pair<bool, std::wstring> Translate(const std::wstring& text)