Skip to content

Commit a108e70

Browse files
Fabrice Bibonnebclozel
Fabrice Bibonne
authored andcommitted
Add Javadoc for use of regexp PathPattern
Closes gh-31886
1 parent 0ad561d commit a108e70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
* <li>{@code *} matches zero or more characters within a path segment</li>
4444
* <li>{@code **} matches zero or more <em>path segments</em> until the end of the path</li>
4545
* <li><code>{spring}</code> matches a <em>path segment</em> and captures it as a variable named "spring"</li>
46-
* <li><code>{spring:[a-z]+}</code> matches the regexp {@code [a-z]+} as a path variable named "spring"</li>
46+
* <li><code>{spring:[a-z]+}</code> matches the regexp {@code [a-z]+} against a path segment
47+
* and captures it a path variable named "spring"</li>
4748
* <li><code>{*spring}</code> matches zero or more <em>path segments</em> until the end of the path
4849
* and captures it as a variable named "spring"</li>
4950
* </ul>

0 commit comments

Comments
 (0)