diff options
author | Allan Wang <me@allanwang.ca> | 2019-03-30 22:50:12 -0400 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-03-30 22:50:12 -0400 |
commit | 5831c6bd1b1ffa90510ebc5146a62e50758f25fb (patch) | |
tree | 36edfe31b586dc4648e872126f71b0518702f14f /app/src/main | |
parent | 8b04a820d30429a4651053e8dc7b1bee23fe21e1 (diff) | |
download | frost-5831c6bd1b1ffa90510ebc5146a62e50758f25fb.tar.gz frost-5831c6bd1b1ffa90510ebc5146a62e50758f25fb.tar.bz2 frost-5831c6bd1b1ffa90510ebc5146a62e50758f25fb.zip |
Prepend v to bugsnag tags, resolves #1367
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/BuildUtils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/BuildUtils.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/BuildUtils.kt index 33da56f2..65ef3056 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/BuildUtils.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/BuildUtils.kt @@ -30,7 +30,7 @@ object BuildUtils { fun match(version: String): Data? { val regex = Regex("([0-9]+\\.[0-9]+\\.[0-9]+)-?(.*?)") val result = regex.matchEntire(version)?.groupValues ?: return null - return Data(result[1], result[2]) + return Data("v${result[1]}", result[2]) } fun getAllStages(): Array<String> = |