{"action":"opened","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/363","labels_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/363/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/363/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/363/events","html_url":"https://github.com/barryvdh/laravel-debugbar/issues/363","id":89498546,"number":363,"title":"Small fix for the EXPLAIN regex","user":{"login":"crosma","id":1904675,"avatar_url":"https://avatars.githubusercontent.com/u/1904675?v=3","gravatar_id":"","url":"https://api.github.com/users/crosma","html_url":"https://github.com/crosma","followers_url":"https://api.github.com/users/crosma/followers","following_url":"https://api.github.com/users/crosma/following{/other_user}","gists_url":"https://api.github.com/users/crosma/gists{/gist_id}","starred_url":"https://api.github.com/users/crosma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crosma/subscriptions","organizations_url":"https://api.github.com/users/crosma/orgs","repos_url":"https://api.github.com/users/crosma/repos","events_url":"https://api.github.com/users/crosma/events{/privacy}","received_events_url":"https://api.github.com/users/crosma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-19T08:00:08Z","updated_at":"2015-06-19T08:00:08Z","closed_at":null,"body":"I didn't think this warranted a pull (also, I've never done one, and I'm lazy). The implode and regex both needed small fixes. The \\s* will allow for any amount of whitespace before the keyword for those who hand write their queries and format them.\r\n\r\nQueryCollector.php:93\r\n```\r\nif ($this->explainQuery && preg_match('/^\\s*('.implode('|', $this->explainTypes).')/i', $query)) {\r\n```"}}