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

chore: follow upstream url matcher #1717

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

Conversation

mxschmitt
Copy link
Member

Fixes #1715

@mxschmitt mxschmitt force-pushed the upstream-url-matcher-logic branch from 39957bb to 4a39417 Compare December 18, 2024 10:05
@mxschmitt mxschmitt requested a review from Copilot December 18, 2024 10:07

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.

@mxschmitt mxschmitt force-pushed the upstream-url-matcher-logic branch 3 times, most recently from 13c9b3b to 1d40fab Compare December 18, 2024 12:29
@mxschmitt mxschmitt force-pushed the upstream-url-matcher-logic branch from 1d40fab to f27b75b Compare December 18, 2024 12:38

static UrlMatcher forOneOf(URL baseUrl, Object object) {
if (object == null) {
return UrlMatcher.any();
return new UrlMatcher(baseUrl, (String) null);
Copy link
Member

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;
Copy link
Member

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.

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.

[Bug]: Allow WebSocketRoute matching without trailing slash
2 participants