We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a8feea commit 40f0340Copy full SHA for 40f0340
Loop/Models/ServiceAuthentication/NightscoutService.swift
@@ -55,7 +55,10 @@ class NightscoutService: ServiceAuthenticationUI {
55
}
56
57
var siteURL: URL? {
58
- if let URLString = credentialValues[0], !URLString.isEmpty {
+ if var URLString = credentialValues[0], !URLString.isEmpty {
59
+ while URLString.last == "/" {
60
+ URLString.remove(at: URLString.index(before: URLString.endIndex))
61
+ }
62
return URL(string: URLString)
63
64
0 commit comments