Skip to content

Commit

Permalink
revert change to VERSION_NAME_REGEX - broke a bunch of apps
Browse files Browse the repository at this point in the history
  • Loading branch information
jroddev committed Dec 11, 2022
1 parent 7a79a07 commit 52c0633
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "com.jroddev.android_oss_release_tracker"
minSdk 27
targetSdk 33
versionCode 7
versionName "0.1.6"
versionCode 8
versionName "0.1.7"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ abstract class CommonRepo : Repo {
abstract fun parseReleasesJson(data: JSONArray): LatestVersionData

// Strip everything before the first number. Then any non-whitespace character is allowed
val VERSION_NAME_REGEX = "([0-9]\\x2E[0-9]+\\S*)".toRegex()
val VERSION_NAME_REGEX = "([0-9]+\\S*)".toRegex()
fun cleanVersionName(input: String): String? =
VERSION_NAME_REGEX.find(input)?.groups?.get(0)?.value

Expand Down

0 comments on commit 52c0633

Please sign in to comment.