Open
Conversation
pea3nut
reviewed
Mar 24, 2023
|
|
||
| // read id from url | ||
| const matchResult = url.match(/\d{4,}/); | ||
| const matchResult = url.match(/\d+/); |
Owner
There was a problem hiding this comment.
这里有个考虑是,URL里面有可能有别的数字。页码。改成+后会不会把页码识别成id?
Author
There was a problem hiding this comment.
应该要梳理一下现在新版p站各个页面的url和参数了, 有空我整理一下先看看
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复无法抓取 UID 为三位数及以下的用户作品的问题 (#220)