diff options
| author | Leonetienne <leonetienne@hotmail.de> | 2022-02-12 23:36:18 +0100 |
|---|---|---|
| committer | Leonetienne <leonetienne@hotmail.de> | 2022-02-12 23:36:53 +0100 |
| commit | 7270d395f2ef633fc6c6fd8ea881ff88ff8a537c (patch) | |
| tree | 5052da3851dadb7d0d9e3f4b840a92c2fcea6435 /Src/main.cpp | |
| parent | 0472d49018d6809b789a5d64d43e703b8c154d24 (diff) | |
Fixie-wixied bug twat caused er nyot to be repwaced witw a
Diffstat (limited to 'Src/main.cpp')
| -rw-r--r-- | Src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/main.cpp b/Src/main.cpp index 5e44cd7..e03e1f0 100644 --- a/Src/main.cpp +++ b/Src/main.cpp @@ -58,7 +58,7 @@ std::string MakeUwu(std::string boringString) { nextNextChar = CharTools::MakeLower(boringString[index + found.length() + 1]); nextNextCharIsNotLetter = !CharTools::IsLetter(nextNextChar); } - + const bool nextNextCharBreaksWord = (sizeLeft == 1) || (nextNextCharIsNotLetter); // Don't replace if: @@ -155,7 +155,7 @@ std::string MakeUwu(std::string boringString) { [boringString](const std::string &found, int index) { // Replace if we're at the end of this line/segment if (index + found.length() == boringString.length()) - return false; + return true; // Fetch the next char const char nextChar = CharTools::MakeLower(boringString[index + found.length()]); |
