-
Notifications
You must be signed in to change notification settings - Fork 209
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
chore: follow upstream url matcher #1717
base: main
Are you sure you want to change the base?
Conversation
39957bb
to
4a39417
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
13c9b3b
to
1d40fab
Compare
1d40fab
to
f27b75b
Compare
|
||
static UrlMatcher forOneOf(URL baseUrl, Object object) { | ||
if (object == null) { | ||
return UrlMatcher.any(); | ||
return new UrlMatcher(baseUrl, (String) null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will only match baseURL while it was matching anything before.
|
||
import static com.microsoft.playwright.impl.Utils.globToRegex; | ||
import static com.microsoft.playwright.impl.Utils.toJsRegexFlags; | ||
|
||
class UrlMatcher { | ||
final Object rawSource; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's revert this part, it can be refactored in a separate change.
Fixes #1715