Skip to content

Conversation

@mxschmitt
Copy link
Contributor

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

Copilot AI left a 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.

@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.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

3 participants