Skip to content

Commit

Permalink
Switch $\Z to \Z in matching regex
Browse files Browse the repository at this point in the history
This was the aim of d761d0e but a
typo included both. \Z is a stricter form of $.
  • Loading branch information
pgjones committed Jul 26, 2022
1 parent 3a408ed commit b59eb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/werkzeug/routing/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def _parse_rule(self, rule: str) -> t.Iterable[RulePart]:
argument_weights,
)
if not static:
content += r"$\Z"
content += r"\Z"
yield RulePart(
content=content, final=final, static=static, weight=weight
)
Expand Down

0 comments on commit b59eb67

Please sign in to comment.