From 9fb12552913516860d1ed50ab7e7aa0c5ad4c397 Mon Sep 17 00:00:00 2001 From: slopggobblercobbler81 <336610228+slopggobblercobbler81@users.noreply.github.com> Date: Tue, 20 Oct 2026 04:18:27 +0200 Subject: [PATCH] fix(zod-transform-socials): recognize neocities urls with trailing slashes --- package-lock.json | 8 ++++---- zod-transform-socials/src/social-links.ts | 2 +- zod-transform-socials/tests/platforms.test.ts | 6 ++++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 03b718b..61d5b63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -56,7 +56,7 @@ }, "astro-ao3-loader": { "name": "@fujocoded/astro-ao3-loader", - "version": "0.0.4", + "version": "0.0.5", "license": "MIT", "dependencies": { "@fujocoded/ao3.js": "^0.23.1", @@ -484,7 +484,7 @@ }, "astro-atproto-loader": { "name": "@fujocoded/astro-atproto-loader", - "version": "0.2.3", + "version": "0.2.4", "license": "MIT", "dependencies": { "@atproto/api": "^0.20.42", @@ -2337,7 +2337,7 @@ }, "astro-authproto": { "name": "@fujocoded/authproto", - "version": "0.4.0", + "version": "0.4.1", "license": "MIT", "dependencies": { "@atproto/api": "^0.17.3", @@ -2898,7 +2898,7 @@ }, "astro-smooth-actions": { "name": "@fujocoded/astro-smooth-actions", - "version": "0.0.1", + "version": "0.0.2", "license": "MIT", "devDependencies": { "@playwright/test": "^1.61.0", diff --git a/zod-transform-socials/src/social-links.ts b/zod-transform-socials/src/social-links.ts index 770dad8..d90b9dc 100644 --- a/zod-transform-socials/src/social-links.ts +++ b/zod-transform-socials/src/social-links.ts @@ -62,7 +62,7 @@ const CUSTOM_PROFILE_MATCHES = { ], neocities: [ { - match: "https?://([a-z0-9-]+)\\.neocities\\.org", + match: "https?://([a-z0-9-]+)\\.neocities\\.org/?", group: 1, }, ], diff --git a/zod-transform-socials/tests/platforms.test.ts b/zod-transform-socials/tests/platforms.test.ts index 0eb4745..c02360e 100644 --- a/zod-transform-socials/tests/platforms.test.ts +++ b/zod-transform-socials/tests/platforms.test.ts @@ -33,6 +33,12 @@ describe("Platform detection across socials", () => { username: "boba-tan", icon: "lucide:cat", }, + { + url: "https://boba-tan.neocities.org/", + platform: "neocities", + username: "boba-tan", + icon: "lucide:cat", + }, { url: "https://archiveofourown.org/users/boba-tan", platform: "archiveofourown",