{"action":"created","issue":{"url":"https://api.github.com/repos/delvedor/find-my-way/issues/67","repository_url":"https://api.github.com/repos/delvedor/find-my-way","labels_url":"https://api.github.com/repos/delvedor/find-my-way/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/delvedor/find-my-way/issues/67/comments","events_url":"https://api.github.com/repos/delvedor/find-my-way/issues/67/events","html_url":"https://github.com/delvedor/find-my-way/issues/67","id":301919309,"number":67,"title":"URL matches unexpectedly when multiple routes have a similar prefix","user":{"login":"nwoltman","id":5128013,"avatar_url":"https://avatars1.githubusercontent.com/u/5128013?v=4","gravatar_id":"","url":"https://api.github.com/users/nwoltman","html_url":"https://github.com/nwoltman","followers_url":"https://api.github.com/users/nwoltman/followers","following_url":"https://api.github.com/users/nwoltman/following{/other_user}","gists_url":"https://api.github.com/users/nwoltman/gists{/gist_id}","starred_url":"https://api.github.com/users/nwoltman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwoltman/subscriptions","organizations_url":"https://api.github.com/users/nwoltman/orgs","repos_url":"https://api.github.com/users/nwoltman/repos","events_url":"https://api.github.com/users/nwoltman/events{/privacy}","received_events_url":"https://api.github.com/users/nwoltman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-02T22:02:26Z","updated_at":"2018-03-12T10:32:59Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"#65 solved #59/#60, but it created this new bug:\r\n\r\n```js\r\nvar router = require('find-my-way')()\r\n\r\nrouter.on('GET', '/b/', function b () {})\r\nrouter.on('GET', '/b/bulk', function b_bulk () {})\r\nrouter.on('GET', '/b/ulk', function b_ulk () {})\r\n\r\nconsole.log(router.find('GET', '/bulk')) // { handler: [Function: b_ulk], ... }\r\n```\r\n\r\n#65 may not have been the right fix. It seems like something is going on with how prefixes are matched and might have something to do with the `label` property on nodes."},"comment":{"url":"https://api.github.com/repos/delvedor/find-my-way/issues/comments/372262967","html_url":"https://github.com/delvedor/find-my-way/issues/67#issuecomment-372262967","issue_url":"https://api.github.com/repos/delvedor/find-my-way/issues/67","id":372262967,"user":{"login":"DenisFrezzato","id":11299464,"avatar_url":"https://avatars0.githubusercontent.com/u/11299464?v=4","gravatar_id":"","url":"https://api.github.com/users/DenisFrezzato","html_url":"https://github.com/DenisFrezzato","followers_url":"https://api.github.com/users/DenisFrezzato/followers","following_url":"https://api.github.com/users/DenisFrezzato/following{/other_user}","gists_url":"https://api.github.com/users/DenisFrezzato/gists{/gist_id}","starred_url":"https://api.github.com/users/DenisFrezzato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenisFrezzato/subscriptions","organizations_url":"https://api.github.com/users/DenisFrezzato/orgs","repos_url":"https://api.github.com/users/DenisFrezzato/repos","events_url":"https://api.github.com/users/DenisFrezzato/events{/privacy}","received_events_url":"https://api.github.com/users/DenisFrezzato/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T10:32:59Z","updated_at":"2018-03-12T10:32:59Z","author_association":"NONE","body":"I found a similar erroneous behaviour with parametric routes. \r\n\r\n```\r\nrouter.on('GET', '/foo/:fooParam', function foo() {})\r\nrouter.on('GET', '/foo/bar/:barParam', function fooBar() {})\r\nrouter.on('GET', '/foo/search', function fooSearch() {})\r\nrouter.on('GET', '/foo/submit', function fooSubmit() {})\r\n\r\nconsole.log(router.find('GET', '/foo/awesome-parameter')) // { handler: [Function: foo]\r\nconsole.log(router.find('GET', '/foo/b-first-character')) // null\r\nconsole.log(router.find('GET', '/foo/s-first-character')) // { handler: [Function: foo]\r\nconsole.log(router.find('GET', '/foo/se-prefix')) // null\r\n```"}}
{"actor":{"display_login":"DenisFrezzato"}}