Skip to content

Commit

Permalink
Fix incorrect regex rendering in MVC controller documentation
Browse files Browse the repository at this point in the history
This commit fixes the issue where the regex pattern in the reference documentation
was not rendering correctly for the `/projects/{project:[a-z]+}/versions` mapping.

Closes gh-33766
  • Loading branch information
Torres-09 authored and bclozel committed Oct 21, 2024
1 parent e235e66 commit d22924c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Some example patterns:
* `+"/resources/*.png"+` - match zero or more characters in a path segment
* `+"/resources/**"+` - match multiple path segments
* `+"/projects/{project}/versions"+` - match a path segment and capture it as a variable
* `+"/projects/{project:[a-z]+}/versions"+` - match and capture a variable with a regex
* `++"/projects/{project:[a-z]+}/versions"++` - match and capture a variable with a regex

Captured URI variables can be accessed with `@PathVariable`. For example:

Expand Down

0 comments on commit d22924c

Please sign in to comment.