-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TT-1944] Fix regex matching for parameters (#6480)
JIRA: https://tyktech.atlassian.net/browse/TT-1944 Match used `*` allowing it to match 0 characters. Match now uses `+`, matching a minimum of 1 character. Behaviour change: Previously requests for `/users/{id}` would allow `/users/` to pass without parameter. When replacing named parameter patterns, `{}` would be matched, which is invalid. Follow up issue: Mux can define a regex as `{id:[0-9]+}` or similar custom regex rules. The match does not respect this. --------- Co-authored-by: Tit Petric <tit@tyk.io>
- Loading branch information
1 parent
7cbb40a
commit 7ee58e0
Showing
3 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters