Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ steps:
command: python
args:
- -c
- print(r'{{ re_search("hello", r"llo\z") }}')
- print(r'{{ re_search("hello", r"llo\\Z") }}')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be a single backslash: r"llo\Z". In an EXPR raw string, \\Z is two literal backslashes — as a regex that's an escaped backslash plus a literal Z, which is valid in the dialect, so the fixture no longer tests rejection of the \Z anchor. Compare the lower-z sibling (r"llo\z") and the backreference fixture (r"(a)\1"), which both use single backslashes.