Fix bug where nostr: links and QRs stopped working

Changelog-Fixed: Fix bug where nostr: links and QRs stopped working
This commit is contained in:
William Casarin
2023-03-21 06:35:08 -06:00
parent 022045d916
commit ed90139b0c

View File

@@ -127,7 +127,7 @@ func decode_nostr_uri(_ s: String) -> NostrLink? {
var uri = s.replacingOccurrences(of: "nostr://", with: "")
uri = uri.replacingOccurrences(of: "nostr:", with: "")
uri = s.replacingOccurrences(of: "damus://", with: "")
uri = uri.replacingOccurrences(of: "damus://", with: "")
uri = uri.replacingOccurrences(of: "damus:", with: "")
let parts = uri.split(separator: ":")