{"html_url": "https://github.com/simonw/datasette/issues/996#issuecomment-705119801", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/996", "id": 705119801, "node_id": "MDEyOklzc3VlQ29tbWVudDcwNTExOTgwMQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-10-07T18:34:58Z", "updated_at": "2020-10-07T18:34:58Z", "author_association": "OWNER", "body": "One option: compare the length of the matches and pick the shortest one.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 716756082, "label": "Better handling of multiple matching template wildcard paths"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/996#issuecomment-705116123", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/996", "id": 705116123, "node_id": "MDEyOklzc3VlQ29tbWVudDcwNTExNjEyMw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-10-07T18:27:57Z", "updated_at": "2020-10-07T18:28:36Z", "author_association": "OWNER", "body": "This line was meant to handle this case, by only matching non-/ characters. Looks like it did not have the desired effect: https://github.com/simonw/datasette/blob/14982bd900f17a66acc3930ec1a2ff138716d198/datasette/app.py#L1204\r\n\r\nMaybe because the finished regex doesn't include `^` and `$` anchors?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 716756082, "label": "Better handling of multiple matching template wildcard paths"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/996#issuecomment-705115185", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/996", "id": 705115185, "node_id": "MDEyOklzc3VlQ29tbWVudDcwNTExNTE4NQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-10-07T18:26:11Z", "updated_at": "2020-10-07T18:26:45Z", "author_association": "OWNER", "body": "Relevant code: https://github.com/simonw/datasette/blob/14982bd900f17a66acc3930ec1a2ff138716d198/datasette/app.py#L1030-L1037\r\n\r\nhttps://github.com/simonw/datasette/blob/14982bd900f17a66acc3930ec1a2ff138716d198/datasette/app.py#L951-L954\r\n\r\nhttps://github.com/simonw/datasette/blob/14982bd900f17a66acc3930ec1a2ff138716d198/datasette/app.py#L1197-L1207", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 716756082, "label": "Better handling of multiple matching template wildcard paths"}, "performed_via_github_app": null}