fix(rebase): resolve PR #266 conflicts against latest main
This commit is contained in:
parent
34306e32d8
commit
2d6ec2fb71
7 changed files with 142 additions and 51 deletions
|
|
@ -32,7 +32,10 @@ fn split_message_for_telegram(message: &str) -> Vec<String> {
|
|||
pos + 1
|
||||
} else {
|
||||
// Try space as fallback
|
||||
search_area.rfind(' ').unwrap_or(TELEGRAM_MAX_MESSAGE_LENGTH) + 1
|
||||
search_area
|
||||
.rfind(' ')
|
||||
.unwrap_or(TELEGRAM_MAX_MESSAGE_LENGTH)
|
||||
+ 1
|
||||
}
|
||||
} else if let Some(pos) = search_area.rfind(' ') {
|
||||
pos + 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue