Skip to content

Fix: issue #220#221

Open
Ailitonia wants to merge 1 commit intopea3nut:masterfrom
Ailitonia:patch-1
Open

Fix: issue #220#221
Ailitonia wants to merge 1 commit intopea3nut:masterfrom
Ailitonia:patch-1

Conversation

@Ailitonia
Copy link
Copy Markdown

@Ailitonia Ailitonia commented Mar 15, 2023

修复无法抓取 UID 为三位数及以下的用户作品的问题 (#220)

@Ailitonia Ailitonia changed the title Fix: issue #120 Fix: issue #220 Mar 15, 2023
Comment thread src/app/util.js

// read id from url
const matchResult = url.match(/\d{4,}/);
const matchResult = url.match(/\d+/);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里有个考虑是,URL里面有可能有别的数字。页码。改成+后会不会把页码识别成id?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该要梳理一下现在新版p站各个页面的url和参数了, 有空我整理一下先看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants