codeconsole opened a new pull request, #15522:
URL: https://github.com/apache/grails-core/pull/15522
Final fix for greedy url mapping parameter
Verified with:
```groovy
// /scott.smith.json, /scott.json, /12345.json, /scott, /12345
"/${id}+(.$format)?"(controller:'user', action:'profile') {
constraints {
format(inList: ['json', 'xml'])
}
}
// Fallback for IDs with dots but no valid format (e.g. /scott.smith
→ id=scott.smith)
"/${id}"(controller:'user', action:'profile')
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]