mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
fix in text sources list creating
This commit is contained in:
parent
cabfd7c76b
commit
59d7a7c781
@ -2,6 +2,9 @@
|
||||
|
||||
## 0.34.1
|
||||
|
||||
* `Core`
|
||||
* Fix in creating of text sources list
|
||||
|
||||
## 0.34.0
|
||||
|
||||
**UPDATE UP TO Telegram Bot API 5.2**
|
||||
|
@ -59,7 +59,7 @@ internal fun List<TextSource>.fillWithRegulars(source: String): List<TextSource>
|
||||
val textSource = get(i)
|
||||
val thisSourceInStart = source.startsWith(textSource.source, index)
|
||||
if (!thisSourceInStart) {
|
||||
val regularEndIndex = source.indexOf(textSource.source)
|
||||
val regularEndIndex = source.indexOf(textSource.source, index)
|
||||
result.add(regular(source.substring(index, regularEndIndex)))
|
||||
index = regularEndIndex
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user