diff --git a/fix.mjs b/fix.mjs index ef3a7ba..b95d659 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+)(?:#(\d+))?/i, redirect: match => `https://pixiv.kmn5.li/${match[1]}${match[2] ? `_${parseInt(match[2], 10) - 1}` : ''}`, }, {