From b59eb67b65de96832e91b55a3c5b8e9e6d9a185c Mon Sep 17 00:00:00 2001 From: pgjones Date: Tue, 26 Jul 2022 21:55:00 +0100 Subject: [PATCH] Switch $\Z to \Z in matching regex This was the aim of d761d0e7acceb89f56d76434a74aeacf95d5ed49 but a typo included both. \Z is a stricter form of $. --- src/werkzeug/routing/rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/werkzeug/routing/rules.py b/src/werkzeug/routing/rules.py index 5a33f894d..29c785688 100644 --- a/src/werkzeug/routing/rules.py +++ b/src/werkzeug/routing/rules.py @@ -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 )