From 331d7e979229bf7c6764ea4dcc2d5172e7d85057 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 3 Feb 2023 11:41:31 -0800 Subject: [PATCH] make lnurl sanity check case insensitive --- damus/Nostr/Nostr.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/Nostr/Nostr.swift b/damus/Nostr/Nostr.swift index f6655fee..3d7f5ba0 100644 --- a/damus/Nostr/Nostr.swift +++ b/damus/Nostr/Nostr.swift @@ -110,7 +110,7 @@ struct Profile: Codable { return lnaddress_to_lnurl(addr); } - if !addr.hasPrefix("lnurl") { + if !addr.lowercased().hasPrefix("lnurl") { return nil }