{"action":"created","issue":{"url":"https://api.github.com/repos/pillarjs/path-to-regexp/issues/87","repository_url":"https://api.github.com/repos/pillarjs/path-to-regexp","labels_url":"https://api.github.com/repos/pillarjs/path-to-regexp/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/pillarjs/path-to-regexp/issues/87/comments","events_url":"https://api.github.com/repos/pillarjs/path-to-regexp/issues/87/events","html_url":"https://github.com/pillarjs/path-to-regexp/issues/87","id":168007474,"number":87,"title":"Make trailing slash optional in splat params.","user":{"login":"DylanPiercey","id":4985201,"avatar_url":"https://avatars.githubusercontent.com/u/4985201?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanPiercey","html_url":"https://github.com/DylanPiercey","followers_url":"https://api.github.com/users/DylanPiercey/followers","following_url":"https://api.github.com/users/DylanPiercey/following{/other_user}","gists_url":"https://api.github.com/users/DylanPiercey/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanPiercey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanPiercey/subscriptions","organizations_url":"https://api.github.com/users/DylanPiercey/orgs","repos_url":"https://api.github.com/users/DylanPiercey/repos","events_url":"https://api.github.com/users/DylanPiercey/events{/privacy}","received_events_url":"https://api.github.com/users/DylanPiercey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-07-28T03:39:44Z","updated_at":"2016-10-01T22:04:59Z","closed_at":"2016-07-30T05:48:13Z","body":"Hey,\r\n\r\nI often find myself writing paths like this:\r\n\r\n```js\r\napp.get('/test/*', ...)\r\n\r\n// Which becomes\r\n\r\napp.get('/test/(.*)', ...)\r\n```\r\n\r\nHowever 100% of the time what I actually want is this:\r\n\r\n```js\r\napp.get('/test(/?.*)', ...)\r\n```\r\n\r\nIs it possible to make a splat only section of the path allow for optional trailing slash?\r\n\r\nI realize this would be a breaking change, but I can't perceive any crazy issues with it and it would be pretty convenient for myself and perhaps others."},"comment":{"url":"https://api.github.com/repos/pillarjs/path-to-regexp/issues/comments/250940421","html_url":"https://github.com/pillarjs/path-to-regexp/issues/87#issuecomment-250940421","issue_url":"https://api.github.com/repos/pillarjs/path-to-regexp/issues/87","id":250940421,"user":{"login":"DylanPiercey","id":4985201,"avatar_url":"https://avatars.githubusercontent.com/u/4985201?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanPiercey","html_url":"https://github.com/DylanPiercey","followers_url":"https://api.github.com/users/DylanPiercey/followers","following_url":"https://api.github.com/users/DylanPiercey/following{/other_user}","gists_url":"https://api.github.com/users/DylanPiercey/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanPiercey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanPiercey/subscriptions","organizations_url":"https://api.github.com/users/DylanPiercey/orgs","repos_url":"https://api.github.com/users/DylanPiercey/repos","events_url":"https://api.github.com/users/DylanPiercey/events{/privacy}","received_events_url":"https://api.github.com/users/DylanPiercey/received_events","type":"User","site_admin":false},"created_at":"2016-10-01T22:04:59Z","updated_at":"2016-10-01T22:04:59Z","body":"Yeah mounting has always been a tough one for me, although i'm pretty happy with the Rill router at the moment.\r\n\r\nI borrowed the term `phases`from the [koa middleware guide](https://github.com/koajs/koa/blob/master/docs/guide.md), they mention the `capture` and `bubble` phase, so I figured together they were phases? Terminology for this kind of middleware is as hard to describe as it is to wrap your head around when you first see it 😜.\r\n\r\nAlso [popsicle](https://github.com/blakeembrey/popsicle) looks sweet, thanks for the link! Universal javascript libraries always make me happy."}}
{"actor":{"display_login":"DylanPiercey"}}