Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relax regex to ignore extra query params #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

spwats
Copy link

@spwats spwats commented Nov 20, 2022

searching for candidates currently fails because the candidate search regex is strict; it assumes that there is only a single query param called id. However, orp now returns search results whose URLs contain an additional query param. This PR fixes the problem with correctly identifying these returned search results by relaxing the regex pattern to account for the existence of additional query params.

modify the regex pattern for matching candidates in order to account for any extra URL query params found after `id`
@Rubicj
Copy link

Rubicj commented Apr 12, 2024

Was experiencing difficulties and found out it was this same problem. I solved it by making the final double quote optiona, but your solution is better as it doesn't rely on greedy matching to match the whole id.

starkayc added a commit to starkayc/orpheusbetter-crawler that referenced this pull request Sep 29, 2024
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.

3 participants