fix garbage filter bug
This commit is contained in:
parent
fb9fb5d54a
commit
c9ad8880fb
@ -185,7 +185,7 @@ bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo)
|
|||||||
if (useFilter)
|
if (useFilter)
|
||||||
{
|
{
|
||||||
Trim(sentence);
|
Trim(sentence);
|
||||||
sentence.erase(std::find_if(sentence.begin(), sentence.end(), [](wchar_t ch) { return ch < ' ' && ch != '\n'; }), sentence.end());
|
sentence.erase(std::remove_if(sentence.begin(), sentence.end(), [](wchar_t ch) { return ch < ' ' && ch != '\n'; }), sentence.end());
|
||||||
}
|
}
|
||||||
if (useCache)
|
if (useCache)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user