We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33db3b2 commit b6618ddCopy full SHA for b6618dd
lib/url.js
@@ -93,7 +93,7 @@ export function parseEmbedUrl (href) {
93
const { hostname, pathname, searchParams } = new URL(href)
94
95
// nostr prefixes: [npub1, nevent1, nprofile1, note1]
96
- const nostr = href.match(/(?<id>(?<type>npub1|nevent1|nprofile1|note1|naddr1)[02-9ac-hj-np-z]+)/)
+ const nostr = href.match(/\/(?<id>(?<type>npub1|nevent1|nprofile1|note1|naddr1)[02-9ac-hj-np-z]+)/)
97
if (nostr?.groups?.id) {
98
let id = nostr.groups.id
99
if (nostr.groups.type === 'npub1') {
0 commit comments