Merge pull request #381 from InsanusMokrassar/0.34.1

0.34.1
This commit is contained in:
InsanusMokrassar 2021-05-05 19:37:32 +06:00 committed by GitHub
commit fd915553e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,14 @@
# TelegramBotAPI changelog
## 0.34.1
* `Common`:
* `Version`:
* `ktor`: `1.5.3` -> `1.5.4`
* `MicroUtils`: `0.4.35` -> `0.4.36`
* `Core`
* Fix in creating of text sources list
## 0.34.0
**UPDATE UP TO Telegram Bot API 5.2**

View File

@ -10,13 +10,13 @@ kotlin_coroutines_version=1.4.3
kotlin_serialisation_runtime_version=1.1.0
klock_version=2.0.7
uuid_version=0.2.4
ktor_version=1.5.3
ktor_version=1.5.4
micro_utils_version=0.4.35
micro_utils_version=0.4.36
javax_activation_version=1.1.1
library_group=dev.inmo
library_version=0.34.0
library_version=0.34.1
github_release_plugin_version=2.2.12

View File

@ -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
}