From d22924c728cdaa9d24a9d36fe87af8d21d9eceaa Mon Sep 17 00:00:00 2001 From: Sehwan Lim Date: Tue, 22 Oct 2024 00:40:41 +0900 Subject: [PATCH] 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 --- .../pages/web/webmvc/mvc-controller/ann-requestmapping.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-requestmapping.adoc b/framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-requestmapping.adoc index fe929fda35e7..0e6e08078282 100644 --- a/framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-requestmapping.adoc +++ b/framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-requestmapping.adoc @@ -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: