{"action":"created","issue":{"url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/1126","repository_url":"https://api.github.com/repos/PerlDancer/Dancer2","labels_url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/1126/labels{/name}","comments_url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/1126/comments","events_url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/1126/events","html_url":"https://github.com/PerlDancer/Dancer2/pull/1126","id":131691931,"number":1126,"title":"Convert named parameters to named captures in routes","user":{"login":"smcmurray","id":1036479,"avatar_url":"https://avatars.githubusercontent.com/u/1036479?v=3","gravatar_id":"","url":"https://api.github.com/users/smcmurray","html_url":"https://github.com/smcmurray","followers_url":"https://api.github.com/users/smcmurray/followers","following_url":"https://api.github.com/users/smcmurray/following{/other_user}","gists_url":"https://api.github.com/users/smcmurray/gists{/gist_id}","starred_url":"https://api.github.com/users/smcmurray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smcmurray/subscriptions","organizations_url":"https://api.github.com/users/smcmurray/orgs","repos_url":"https://api.github.com/users/smcmurray/repos","events_url":"https://api.github.com/users/smcmurray/events{/privacy}","received_events_url":"https://api.github.com/users/smcmurray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-05T16:47:27Z","updated_at":"2016-02-05T17:02:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PerlDancer/Dancer2/pulls/1126","html_url":"https://github.com/PerlDancer/Dancer2/pull/1126","diff_url":"https://github.com/PerlDancer/Dancer2/pull/1126.diff","patch_url":"https://github.com/PerlDancer/Dancer2/pull/1126.patch"},"body":"replaces :name parameters in routes to (?\\<name>[^/]+) named captures.\r\n\r\nAlso allows :name(regex) parameters, converting them to (?\\<name>regex) named captures.\r\n\r\nAll named captures are returned as params.\r\nFor backwards compatability, all named captures are also returned as captures. But captures now becomes deprecated.\r\n\r\nCaveats:\r\n\r\n* :name(regex) only allows limited regex that don't contain ')'\r\n* this PR is completely untested and would require close scrutiny before merging.\r\n* this is really intended as a point of discussion more than an actual patch."},"comment":{"url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/comments/180442053","html_url":"https://github.com/PerlDancer/Dancer2/pull/1126#issuecomment-180442053","issue_url":"https://api.github.com/repos/PerlDancer/Dancer2/issues/1126","id":180442053,"user":{"login":"SysPete","id":6115812,"avatar_url":"https://avatars.githubusercontent.com/u/6115812?v=3","gravatar_id":"","url":"https://api.github.com/users/SysPete","html_url":"https://github.com/SysPete","followers_url":"https://api.github.com/users/SysPete/followers","following_url":"https://api.github.com/users/SysPete/following{/other_user}","gists_url":"https://api.github.com/users/SysPete/gists{/gist_id}","starred_url":"https://api.github.com/users/SysPete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SysPete/subscriptions","organizations_url":"https://api.github.com/users/SysPete/orgs","repos_url":"https://api.github.com/users/SysPete/repos","events_url":"https://api.github.com/users/SysPete/events{/privacy}","received_events_url":"https://api.github.com/users/SysPete/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T17:02:50Z","updated_at":"2016-02-05T17:02:50Z","body":"I like the idea. Just need to make sure docs (and code) make it clear this is a 5.10+ feature and that 5.8 still does it the old way."}}