{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2323","labels_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2323/labels{/name}","comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2323/comments","events_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2323/events","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2323","id":117247302,"number":2323,"title":"Use fnmatch to match file patterns.","user":{"login":"Smeat","id":1054449,"avatar_url":"https://avatars.githubusercontent.com/u/1054449?v=3","gravatar_id":"","url":"https://api.github.com/users/Smeat","html_url":"https://github.com/Smeat","followers_url":"https://api.github.com/users/Smeat/followers","following_url":"https://api.github.com/users/Smeat/following{/other_user}","gists_url":"https://api.github.com/users/Smeat/gists{/gist_id}","starred_url":"https://api.github.com/users/Smeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smeat/subscriptions","organizations_url":"https://api.github.com/users/Smeat/orgs","repos_url":"https://api.github.com/users/Smeat/repos","events_url":"https://api.github.com/users/Smeat/events{/privacy}","received_events_url":"https://api.github.com/users/Smeat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-16T23:55:51Z","updated_at":"2015-11-17T08:01:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/2323","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2323","diff_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2323.diff","patch_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2323.patch"},"body":"My game failed to find my track files (*.TD6), so I replaced strstr with fnmatch, which supports shell wildcard patterns.\r\n\r\nI don't know if others are affected and if my solution is the best, but maybe it is helpful for someone :)\r\n"},"comment":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/comments/157303480","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2323#issuecomment-157303480","issue_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2323","id":157303480,"user":{"login":"janisozaur","id":550290,"avatar_url":"https://avatars.githubusercontent.com/u/550290?v=3","gravatar_id":"","url":"https://api.github.com/users/janisozaur","html_url":"https://github.com/janisozaur","followers_url":"https://api.github.com/users/janisozaur/followers","following_url":"https://api.github.com/users/janisozaur/following{/other_user}","gists_url":"https://api.github.com/users/janisozaur/gists{/gist_id}","starred_url":"https://api.github.com/users/janisozaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janisozaur/subscriptions","organizations_url":"https://api.github.com/users/janisozaur/orgs","repos_url":"https://api.github.com/users/janisozaur/repos","events_url":"https://api.github.com/users/janisozaur/events{/privacy}","received_events_url":"https://api.github.com/users/janisozaur/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T08:01:21Z","updated_at":"2015-11-17T08:01:21Z","body":"That's interesting, I wish I'd known about `fnmatch` when I first implemented it.\r\n\r\nI like this change and it doesn't break building OSX, but shouldn't `flags` have `FNM_PATHNAME`?"}}