We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 732883b commit 056b525Copy full SHA for 056b525
1 file changed
wrapper/src/main/java/io/yubicolabs/wwwwallet/MainViewModel.kt
@@ -121,7 +121,7 @@ class MainViewModel : ViewModel() {
121
when {
122
value.startsWith("https://") -> value
123
value.startsWith("http://") -> value.replace("http", "https")
124
- value.first().isLetter() -> "https://$value" // forgot the https?
+ value.isNotEmpty() && value.first().isLetter() -> "https://$value" // forgot the https?
125
else -> value // for direct ip addresses
126
}
127
0 commit comments