aboutsummaryrefslogtreecommitdiff
path: root/taler-kotlin-android
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2022-09-23 13:10:03 -0300
committerTorsten Grote <t@grobox.de>2022-09-23 13:10:03 -0300
commit54789b6adc3a7716c31b3d634b2afe55d95d9724 (patch)
tree4823bbf75fb0e7320f58a1989b6f49c83cc91a7d /taler-kotlin-android
parenta95f3a0068825ef28bcfdc7379a965609056ca6a (diff)
downloadtaler-android-54789b6adc3a7716c31b3d634b2afe55d95d9724.tar.gz
taler-android-54789b6adc3a7716c31b3d634b2afe55d95d9724.tar.bz2
taler-android-54789b6adc3a7716c31b3d634b2afe55d95d9724.zip
[wallet] Support uppercase URIs
Diffstat (limited to 'taler-kotlin-android')
-rw-r--r--taler-kotlin-android/src/main/java/net/taler/common/TalerUri.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/taler-kotlin-android/src/main/java/net/taler/common/TalerUri.kt b/taler-kotlin-android/src/main/java/net/taler/common/TalerUri.kt
index a1b7225..999408c 100644
--- a/taler-kotlin-android/src/main/java/net/taler/common/TalerUri.kt
+++ b/taler-kotlin-android/src/main/java/net/taler/common/TalerUri.kt
@@ -45,7 +45,7 @@ public object TalerUri {
}
else -> return null
}
- if (!uri.startsWith(prefix)) return null
+ if (!uri.startsWith(prefix, ignoreCase = true)) return null
val parts = uri.let {
(if (it.endsWith("/")) it.dropLast(1) else it).substring(prefix.length).split('/')
}