don't filter useful things from google translate
This commit is contained in:
parent
60372a6b8a
commit
2e99d6b3f2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user