diff --git a/extensions/removerepeat.cpp b/extensions/removerepeat.cpp index 17321a2..873a610 100644 --- a/extensions/removerepeat.cpp +++ b/extensions/removerepeat.cpp @@ -37,6 +37,7 @@ bool RemoveCyclicRepeats(std::wstring& sentence) if (realLength > 7) { sentence = std::wstring(realSentence); + sentence.pop_back(); RemoveCyclicRepeats(sentence); return true; }