mirror of
https://gitlab.com/niansa/discord_llama.git
synced 2025-03-06 20:48:25 +01:00
Fixed utils::max_words cutting off the string too early
This commit is contained in:
parent
1611b82e37
commit
b13afed724
1 changed files with 1 additions and 1 deletions
|
@ -49,6 +49,6 @@ std::string_view max_words(std::string_view text, unsigned count) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Return resulting string
|
// Return resulting string
|
||||||
return {text.data(), text.size()-idx};
|
return {text.data(), idx};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue