Browse Source

Apply suggested change from code comment

master
liminal 8 months ago
parent
commit
01f82aa554
No known key found for this signature in database
GPG Key ID: 962BEC8725790894
  1. 2
      src/lib/utils/profileCache.ts

2
src/lib/utils/profileCache.ts

@ -216,7 +216,7 @@ export function replaceContentPubkeys(content: string): string {
if (!content) return content; if (!content) return content;
// Replace nostr:npub1... references // Replace nostr:npub1... references
const npubPattern = /nostr:npub1[a-z0-9]{58}/g; const npubPattern = /nostr:npub[a-z0-9]{58}/g;
let result = content; let result = content;
const matches = content.match(npubPattern) || []; const matches = content.match(npubPattern) || [];

Loading…
Cancel
Save