{"action":"opened","issue":{"url":"https://api.github.com/repos/weavejester/clout/issues/26","labels_url":"https://api.github.com/repos/weavejester/clout/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/weavejester/clout/issues/26/comments","events_url":"https://api.github.com/repos/weavejester/clout/issues/26/events","html_url":"https://github.com/weavejester/clout/issues/26","id":122813419,"number":26,"title":"Captured groups in patterns clobber following path parameters","user":{"login":"casphas","id":379670,"avatar_url":"https://avatars.githubusercontent.com/u/379670?v=3","gravatar_id":"","url":"https://api.github.com/users/casphas","html_url":"https://github.com/casphas","followers_url":"https://api.github.com/users/casphas/followers","following_url":"https://api.github.com/users/casphas/following{/other_user}","gists_url":"https://api.github.com/users/casphas/gists{/gist_id}","starred_url":"https://api.github.com/users/casphas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casphas/subscriptions","organizations_url":"https://api.github.com/users/casphas/orgs","repos_url":"https://api.github.com/users/casphas/repos","events_url":"https://api.github.com/users/casphas/events{/privacy}","received_events_url":"https://api.github.com/users/casphas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T20:08:18Z","updated_at":"2015-12-17T20:08:18Z","closed_at":null,"body":"If a regex uses capturing groups, path parameters following the pattern get assigned values from the captured group, not the value from the path.\r\n\r\n;; Clout version 2.1.2\r\n(clout/route-matches (clout/route-compile \"/:foo/:bar\" {:foo #\"a(bcd|ef)g\"}) \r\n                                  (mock/request :get \"/abcdg/1\"))\r\n=> {:bar \"bcd\", :foo \"abcdg\"}\r\n\r\nexpected:\r\n=> {:bar \"1\", :foo \"abcdg\"}\r\n"}}