Skip to content

Commit d22924c

Browse files
Torres-09bclozel
authored andcommitted
Fix incorrect regex rendering in MVC controller documentation
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
1 parent e235e66 commit d22924c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-requestmapping.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Some example patterns:
119119
* `+"/resources/*.png"+` - match zero or more characters in a path segment
120120
* `+"/resources/**"+` - match multiple path segments
121121
* `+"/projects/{project}/versions"+` - match a path segment and capture it as a variable
122-
* `+"/projects/{project:[a-z]+}/versions"+` - match and capture a variable with a regex
122+
* `++"/projects/{project:[a-z]+}/versions"++` - match and capture a variable with a regex
123123

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

0 commit comments

Comments
 (0)