make it case insensitive

pull/89/head
Ryan ZHAO 5 years ago
parent 3e5d9bc66b
commit c9999e7d84

@ -259,7 +259,7 @@ private final class EnterChatURLVC : UIViewController {
// MARK: Interaction // MARK: Interaction
@objc private func joinPublicChatIfPossible() { @objc private func joinPublicChatIfPossible() {
var chatURL = chatURLTextField.text?.trimmingCharacters(in: .whitespaces) ?? "" var chatURL = chatURLTextField.text?.trimmingCharacters(in: .whitespaces) ?? ""
if !chatURL.starts(with: "http") { if !chatURL.lowercased().starts(with: "http") {
chatURL = "https://" + chatURL chatURL = "https://" + chatURL
} }
joinPublicChatVC.joinPublicChatIfPossible(with: chatURL) joinPublicChatVC.joinPublicChatIfPossible(with: chatURL)

Loading…
Cancel
Save