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}` : ''}`, }, {