Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix ensure that the entire part is matched #2470

Merged
merged 2 commits into from
Jul 26, 2022
Merged

Conversation

pgjones
Copy link
Member

@pgjones pgjones commented Jul 26, 2022

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code.
  • Add an entry in CHANGES.rst summarizing the change and linking to the issue.
  • Add .. versionchanged:: entries in any relevant code docs.
  • Run pre-commit hooks and fix any issues.
  • Run pytest and tox, no tests failed.

Previously the router would accept a partial match of a part, which is
contrary to how the router is meant to work. For example if the rule
to be matched was `d+` the router would match `2dfd` as `2` and
silently forget the rest.
@pgjones pgjones changed the base branch from main to 2.2.x July 26, 2022 18:24
@davidism
Copy link
Member

Can you fix the title on this PR? Also remember to open PRs from separate branches otherwise your branch could get out of sync with ours.

Copy link
Member

@kevin-brown kevin-brown left a comment

Choose a reason for hiding this comment

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

I can confirm this fixes the bug I was seeing in my local test bench related to this.

@pgjones pgjones changed the title 2.2.x Bugfix ensure that the entire part is matched Jul 26, 2022
This was the aim of d761d0e but a
typo included both. \Z is a stricter form of $.
@davidism davidism added this to the 2.2.1 milestone Jul 26, 2022
@davidism davidism merged commit 5c85706 into pallets:2.2.x Jul 26, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.2.0 int parameter type definition in flask endpoint are not handled correctly
3 participants