{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/angular/issues/1270","repository_url":"https://api.github.com/repos/dart-lang/angular","labels_url":"https://api.github.com/repos/dart-lang/angular/issues/1270/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/angular/issues/1270/comments","events_url":"https://api.github.com/repos/dart-lang/angular/issues/1270/events","html_url":"https://github.com/dart-lang/angular/issues/1270","id":317183739,"node_id":"MDU6SXNzdWUzMTcxODM3Mzk=","number":1270,"title":"Support custom regex for matching parameters in route paths","user":{"login":"jimmyff","id":298850,"node_id":"MDQ6VXNlcjI5ODg1MA==","avatar_url":"https://avatars0.githubusercontent.com/u/298850?v=4","gravatar_id":"","url":"https://api.github.com/users/jimmyff","html_url":"https://github.com/jimmyff","followers_url":"https://api.github.com/users/jimmyff/followers","following_url":"https://api.github.com/users/jimmyff/following{/other_user}","gists_url":"https://api.github.com/users/jimmyff/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmyff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmyff/subscriptions","organizations_url":"https://api.github.com/users/jimmyff/orgs","repos_url":"https://api.github.com/users/jimmyff/repos","events_url":"https://api.github.com/users/jimmyff/events{/privacy}","received_events_url":"https://api.github.com/users/jimmyff/received_events","type":"User","site_admin":false},"labels":[{"id":649961049,"node_id":"MDU6TGFiZWw2NDk5NjEwNDk=","url":"https://api.github.com/repos/dart-lang/angular/labels/area:%20router","name":"area: router","color":"fad8c7","default":false},{"id":623417149,"node_id":"MDU6TGFiZWw2MjM0MTcxNDk=","url":"https://api.github.com/repos/dart-lang/angular/labels/%E2%9A%A1new%20feature","name":"⚡new feature","color":"91ca55","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-24T11:29:00Z","updated_at":"2018-06-21T17:31:03Z","closed_at":null,"author_association":"NONE","body":"I believe this has been confirmed as coming in the Gitter chat but thought it would be useful having a ticket to know when it's landed.\r\n\r\nI'd like to be able to do something like this:\r\n\r\n```dart\r\nfinal RoutePath yearRoute = new RoutePath(\r\n  path: \":year{4}\",\r\n);\r\nfinal RoutePath countryRoute = new RoutePath(\r\n  path: \":countryCode{3}\",\r\n);\r\n```\r\nSupporting more regex syntax would be good too so you could limit to alpha or numeric characters etc. Not sure how it would look, `path: \":year[0-9]{4}\",` ?\r\n\r\nWould be good if you could do something like (sorry my regex is probably wrong) but allow for optional matching on a language parameter:\r\n` path: \"((:language[a-z]{2}\\/)*):countryCode[A-Z]{3}\",` \r\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/angular/issues/comments/399183167","html_url":"https://github.com/dart-lang/angular/issues/1270#issuecomment-399183167","issue_url":"https://api.github.com/repos/dart-lang/angular/issues/1270","id":399183167,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTE4MzE2Nw==","user":{"login":"leonsenft","id":1916163,"node_id":"MDQ6VXNlcjE5MTYxNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1916163?v=4","gravatar_id":"","url":"https://api.github.com/users/leonsenft","html_url":"https://github.com/leonsenft","followers_url":"https://api.github.com/users/leonsenft/followers","following_url":"https://api.github.com/users/leonsenft/following{/other_user}","gists_url":"https://api.github.com/users/leonsenft/gists{/gist_id}","starred_url":"https://api.github.com/users/leonsenft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonsenft/subscriptions","organizations_url":"https://api.github.com/users/leonsenft/orgs","repos_url":"https://api.github.com/users/leonsenft/repos","events_url":"https://api.github.com/users/leonsenft/events{/privacy}","received_events_url":"https://api.github.com/users/leonsenft/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T17:31:03Z","updated_at":"2018-06-21T17:31:03Z","author_association":"CONTRIBUTOR","body":"The path of each route definition is interpreted as a regex. There's no configuration needed. The only issue is that `toUrl()` doesn't work nicely if you do put regex symbols in the path."}}
{"actor":{"display_login":"leonsenft"}}