Skip to content

UriTemplate should support regex matching with n times {n} pattern [SPR-13627] #18205

@spring-projects-issues

Description

@spring-projects-issues

Nikhil opened SPR-13627 and commented

When I create a UriTemplate with the following template string where I am using the n times pattern {2} in the regex

/site.{domain:co.[a-z]{2}}

This fails to match the uri string

/site.co.eu

Looks like UriTemplate fails to properly parse the {} of any form within the regular expression

Similar improvements to parse the {} were recently applied to UriComponents and UriComponentsBuilder here #17896, but the UriTemplate still lacks this.


Affects: 4.2.2

Issue Links:

Referenced from: commits 971f046

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions