2 Commits

Author SHA1 Message Date
3f9dad8f9a Don't link nrelay in content
All checks were successful
CI / Test and lint (push) Successful in 19s
It's deprecated
2024-12-17 14:40:44 +04:00
275fb73896 Move executables to build/ dir
All checks were successful
CI / Test and lint (push) Successful in 17s
2024-12-09 18:58:17 +04:00
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,3 @@
.env
users.yaml
substr
build/

View File

@@ -2,7 +2,7 @@
"tasks": {
"dev": "deno run --allow-all --watch server.ts",
"server": "deno run --allow-all server.ts",
"compile": "deno compile --allow-all --include ./assets/ --output substr server.ts",
"compile": "deno compile --allow-all --include ./assets/ --output ./build/substr_x86_64-unknown-linux-gnu server.ts",
"test": "deno test --allow-read --allow-env"
},
"imports": {

View File

@@ -110,7 +110,7 @@ export async function nostrUriToUrl(uri: 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);
if (!matches) return markdown;