Skip to content

Commit b59eb67

Browse files
committed
Switch $\Z to \Z in matching regex
This was the aim of d761d0e but a typo included both. \Z is a stricter form of $.
1 parent 3a408ed commit b59eb67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/werkzeug/routing/rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def _parse_rule(self, rule: str) -> t.Iterable[RulePart]:
626626
argument_weights,
627627
)
628628
if not static:
629-
content += r"$\Z"
629+
content += r"\Z"
630630
yield RulePart(
631631
content=content, final=final, static=static, weight=weight
632632
)

0 commit comments

Comments
 (0)