mirror of
https://gitlab.com/niansa/discord_llama.git
synced 2025-03-06 20:48:25 +01:00
Fixed clean_string
This commit is contained in:
parent
4b8d3fe169
commit
766700602b
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -75,7 +75,7 @@ class LLM {
|
|||
std::string clean_string(const std::string& str) {
|
||||
std::string fres;
|
||||
for (const auto c : str) {
|
||||
if (c >= 0x20 && c <= 0x7E
|
||||
if ((c >= 0x20 && c <= 0x7E)
|
||||
|| c == '\n'
|
||||
|| c == "ä"[0] || c == "ä"[1] || c == "ä"[2]
|
||||
|| c == "ö"[0] || c == "ö"[1] || c == "ö"[2]
|
||||
|
|
Loading…
Add table
Reference in a new issue