From 9ab4a9ebf63be3220c3139a6c1dce1e9104c0f01 Mon Sep 17 00:00:00 2001 From: erin Date: Tue, 23 Sep 2025 15:31:41 +0000 Subject: [PATCH] accept any delimiter for pixiv album links because discord doesn't include # in requests --- fix.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fix.mjs b/fix.mjs index b95d659..90cc853 100644 --- a/fix.mjs +++ b/fix.mjs @@ -2,7 +2,7 @@ import {createServer} from 'node:http'; const sites = [ { - pattern: /^(?:www\.)?pixiv\.net(?:\/\w+)?\/artworks\/(\d+)(?:#(\d+))?/i, + pattern: /^(?:www\.)?pixiv\.net(?:\/\w+)?\/artworks\/(\d+)(?:[^\w\d](\d+))?/i, redirect: match => `https://pixiv.kmn5.li/${match[1]}${match[2] ? `_${parseInt(match[2], 10) - 1}` : ''}`, }, {