Compare commits
1 Commits
dev/build-
...
3f9dad8f9a
| Author | SHA1 | Date | |
|---|---|---|---|
|
3f9dad8f9a
|
2
nostr.ts
2
nostr.ts
@@ -110,7 +110,7 @@ export async function nostrUriToUrl(uri: string): Promise<string> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function replaceNostrUris(markdown: string): Promise<string> {
|
export async function replaceNostrUris(markdown: string): Promise<string> {
|
||||||
const nostrUriRegex = /(nostr:|nprofile|naddr|nevent|nrelay|npub)[a-z0-9]+/g;
|
const nostrUriRegex = /(nostr:|nprofile|naddr|nevent|npub)[a-z0-9]+/g;
|
||||||
const matches = markdown.match(nostrUriRegex);
|
const matches = markdown.match(nostrUriRegex);
|
||||||
if (!matches) return markdown;
|
if (!matches) return markdown;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user