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: roll to v1.49.0 #2660

Merged
merged 5 commits into from
Nov 22, 2024
Merged

chore: roll to v1.49.0 #2660

merged 5 commits into from
Nov 22, 2024

Conversation

mxschmitt
Copy link
Member

@mxschmitt mxschmitt commented Nov 21, 2024

Fixes #2606
Fixes #1949

match = glob_to_regex(match)
if isinstance(match, Pattern):
return bool(match.search(url_string))
return match(url_string)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason Python does not have this code:

https://github.com/microsoft/playwright/blob/f43b86fea43aeb99cfea4a0773c577dd9801b35d/packages/playwright-core/src/utils/isomorphic/urlMatch.ts#L110-L118

The "past path" seems an optimisation while the 'parseURL path matching' seems not implemented at all?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like js has some dead code. match cannot be a string there because we do match = globToRegex(match); before.

match = glob_to_regex(match)
if isinstance(match, Pattern):
return bool(match.search(url_string))
return match(url_string)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like js has some dead code. match cannot be a string there because we do match = globToRegex(match); before.

@mxschmitt mxschmitt merged commit f45782e into microsoft:main Nov 22, 2024
37 of 40 checks passed
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.

[Ports]: Backport client side changes for 1.49 [Feature] ability group outputs in the trace viewer
2 participants