accept any delimiter for pixiv album links because discord doesn't include # in requests
This commit is contained in:
parent
79797ae4df
commit
9ab4a9ebf6
1 changed files with 1 additions and 1 deletions
2
fix.mjs
2
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}` : ''}`,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue