Skip to content

Commit

Permalink
Fix wrong changelog parse
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 committed Jun 30, 2023
1 parent d176ce7 commit b2e2fa2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ object UpdateUtils {
val packageUrl = latestClazz.assets[0].browser_download_url
val changelog: List<String> =
latestClazz.body.substringBetween("Changelog", "---", reverse = true).trim()
.split("\r\n")
.split("\n")

GlobalValues.newVersion = versionName
GlobalValues.newVersionLiveData.postValue(versionName)
Expand Down

0 comments on commit b2e2fa2

Please sign in to comment.