aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-03-30 22:50:12 -0400
committerAllan Wang <me@allanwang.ca>2019-03-30 22:50:12 -0400
commit5831c6bd1b1ffa90510ebc5146a62e50758f25fb (patch)
tree36edfe31b586dc4648e872126f71b0518702f14f /app/src/main/kotlin
parent8b04a820d30429a4651053e8dc7b1bee23fe21e1 (diff)
downloadfrost-5831c6bd1b1ffa90510ebc5146a62e50758f25fb.tar.gz
frost-5831c6bd1b1ffa90510ebc5146a62e50758f25fb.tar.bz2
frost-5831c6bd1b1ffa90510ebc5146a62e50758f25fb.zip
Prepend v to bugsnag tags, resolves #1367
Diffstat (limited to 'app/src/main/kotlin')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/BuildUtils.kt2
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> =