Skip to content

fix(regex): translate \Q...\E quoting to JavaScript regex - #2003

Closed
Yury Semikhatsky (yury-s) wants to merge 1 commit into
microsoft:mainfrom
yury-s:fix-1709
Closed

Yury Semikhatsky (yury-s) wants to merge 1 commit into
microsoft:mainfrom
yury-s:fix-1709

Conversation

@yury-s

Copy link
Copy Markdown
Member

Summary

  • Java Pattern.quote() produces \Q...\E, which JavaScript regex doesn't support, so quoted patterns never matched.
  • Quoted sections are now converted to escaped literals wherever a Pattern is sent to the driver.

Fixes #1709

@yury-s

Yury Semikhatsky (yury-s) commented Oct 14, 2026 •

Copy link
Copy Markdown
Member Author

Closing, see #1709 (comment)

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]: Playwright does not recognize Pattern quotation escape sequence (\Q ... \E)

1 participant