{"action":"created","issue":{"url":"https://api.github.com/repos/MinecraftForge/ForgeGradle/issues/335","repository_url":"https://api.github.com/repos/MinecraftForge/ForgeGradle","labels_url":"https://api.github.com/repos/MinecraftForge/ForgeGradle/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/MinecraftForge/ForgeGradle/issues/335/comments","events_url":"https://api.github.com/repos/MinecraftForge/ForgeGradle/issues/335/events","html_url":"https://github.com/MinecraftForge/ForgeGradle/pull/335","id":128292393,"number":335,"title":"Fix #334 invalid regex for methods/fields","user":{"login":"tterrag1098","id":3751664,"avatar_url":"https://avatars.githubusercontent.com/u/3751664?v=3","gravatar_id":"","url":"https://api.github.com/users/tterrag1098","html_url":"https://github.com/tterrag1098","followers_url":"https://api.github.com/users/tterrag1098/followers","following_url":"https://api.github.com/users/tterrag1098/following{/other_user}","gists_url":"https://api.github.com/users/tterrag1098/gists{/gist_id}","starred_url":"https://api.github.com/users/tterrag1098/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tterrag1098/subscriptions","organizations_url":"https://api.github.com/users/tterrag1098/orgs","repos_url":"https://api.github.com/users/tterrag1098/repos","events_url":"https://api.github.com/users/tterrag1098/events{/privacy}","received_events_url":"https://api.github.com/users/tterrag1098/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-23T03:17:49Z","updated_at":"2016-05-03T06:42:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MinecraftForge/ForgeGradle/pulls/335","html_url":"https://github.com/MinecraftForge/ForgeGradle/pull/335","diff_url":"https://github.com/MinecraftForge/ForgeGradle/pull/335.diff","patch_url":"https://github.com/MinecraftForge/ForgeGradle/pull/335.patch"},"body":"Explanation:\r\n\r\nAdded this regex to the pattern for \"words\" in the declaration: (?:<.+>)?\r\n\r\nThis is a noncapturing group which matches anything inside angle brackets (<>), or nothing (the ? character at the end assures it only captures 0-1 instances).\r\n\r\nAlso added this regex to pattern (method only) to avoid matching return statments use srg names: (?!return)\r\n\r\nThis is a negative lookahead to check that there is no return statement just after the whitespace.\r\n\r\nSee http://regexr.com/3cl58 for evidence of the fix."},"comment":{"url":"https://api.github.com/repos/MinecraftForge/ForgeGradle/issues/comments/216451712","html_url":"https://github.com/MinecraftForge/ForgeGradle/pull/335#issuecomment-216451712","issue_url":"https://api.github.com/repos/MinecraftForge/ForgeGradle/issues/335","id":216451712,"user":{"login":"matthewprenger","id":3399824,"avatar_url":"https://avatars.githubusercontent.com/u/3399824?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewprenger","html_url":"https://github.com/matthewprenger","followers_url":"https://api.github.com/users/matthewprenger/followers","following_url":"https://api.github.com/users/matthewprenger/following{/other_user}","gists_url":"https://api.github.com/users/matthewprenger/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewprenger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewprenger/subscriptions","organizations_url":"https://api.github.com/users/matthewprenger/orgs","repos_url":"https://api.github.com/users/matthewprenger/repos","events_url":"https://api.github.com/users/matthewprenger/events{/privacy}","received_events_url":"https://api.github.com/users/matthewprenger/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T06:42:44Z","updated_at":"2016-05-03T06:42:44Z","body":"Bump on this."}}