{"action":"created","comment":{"url":"https://api.github.com/repos/presidentbeef/brakeman/pulls/comments/64488370","id":64488370,"diff_hunk":"@@ -59,17 +59,37 @@ def process_validates validator\n     end\n   end\n \n+  # Match secure regexp without extended option\n+  SECURE_REGEXP_PATTER = %r{\n+    \\A\n+    \\\\A\n+    .*\n+    \\\\[z|Z]","path":"lib/brakeman/checks/check_validation_regex.rb","position":9,"original_position":9,"commit_id":"1227bfb406776a8a6896558762a4e58f71959c94","original_commit_id":"1227bfb406776a8a6896558762a4e58f71959c94","user":{"login":"presidentbeef","id":75613,"avatar_url":"https://avatars.githubusercontent.com/u/75613?v=3","gravatar_id":"","url":"https://api.github.com/users/presidentbeef","html_url":"https://github.com/presidentbeef","followers_url":"https://api.github.com/users/presidentbeef/followers","following_url":"https://api.github.com/users/presidentbeef/following{/other_user}","gists_url":"https://api.github.com/users/presidentbeef/gists{/gist_id}","starred_url":"https://api.github.com/users/presidentbeef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/presidentbeef/subscriptions","organizations_url":"https://api.github.com/users/presidentbeef/orgs","repos_url":"https://api.github.com/users/presidentbeef/repos","events_url":"https://api.github.com/users/presidentbeef/events{/privacy}","received_events_url":"https://api.github.com/users/presidentbeef/received_events","type":"User","site_admin":false},"body":"This is not the same as `(z|Z)`. User either `(z|Z)` or `[zZ]`:\r\n\r\n```\r\n2.3.0 :001 > \"|\".match /[z|Z]/\r\n => #<MatchData \"|\">\r\n2.3.0 :002 > \"|\".match(/(z|Z)/)\r\n => nil\r\n```","created_at":"2016-05-24T22:45:22Z","updated_at":"2016-05-24T22:45:22Z","html_url":"https://github.com/presidentbeef/brakeman/pull/885#discussion_r64488370","pull_request_url":"https://api.github.com/repos/presidentbeef/brakeman/pulls/885","_links":{"self":{"href":"https://api.github.com/repos/presidentbeef/brakeman/pulls/comments/64488370"},"html":{"href":"https://github.com/presidentbeef/brakeman/pull/885#discussion_r64488370"},"pull_request":{"href":"https://api.github.com/repos/presidentbeef/brakeman/pulls/885"}}},"pull_request":{"url":"https://api.github.com/repos/presidentbeef/brakeman/pulls/885","id":71299587,"html_url":"https://github.com/presidentbeef/brakeman/pull/885","diff_url":"https://github.com/presidentbeef/brakeman/pull/885.diff","patch_url":"https://github.com/presidentbeef/brakeman/pull/885.patch","issue_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/885","number":885,"state":"open","locked":false,"title":"Allow extended regexp into validate format","user":{"login":"c0va23","id":587257,"avatar_url":"https://avatars.githubusercontent.com/u/587257?v=3","gravatar_id":"","url":"https://api.github.com/users/c0va23","html_url":"https://github.com/c0va23","followers_url":"https://api.github.com/users/c0va23/followers","following_url":"https://api.github.com/users/c0va23/following{/other_user}","gists_url":"https://api.github.com/users/c0va23/gists{/gist_id}","starred_url":"https://api.github.com/users/c0va23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0va23/subscriptions","organizations_url":"https://api.github.com/users/c0va23/orgs","repos_url":"https://api.github.com/users/c0va23/repos","events_url":"https://api.github.com/users/c0va23/events{/privacy}","received_events_url":"https://api.github.com/users/c0va23/received_events","type":"User","site_admin":false},"body":"Hi!\r\n\r\nI just want to apologize for my English. I use Google Translate for this message.\r\n\r\nI add support of extended regexes into checking of validate format.\r\n\r\nI like to write complex regular expressions in a multiline format, but the brakeman displays false warnings on these regular expressions.\r\n\r\nIn tests I've added an example of such a regular expression.","created_at":"2016-05-24T21:54:42Z","updated_at":"2016-05-24T22:45:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6a1737181960992248fd300dfe818e8eacf0674","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/presidentbeef/brakeman/pulls/885/commits","review_comments_url":"https://api.github.com/repos/presidentbeef/brakeman/pulls/885/comments","review_comment_url":"https://api.github.com/repos/presidentbeef/brakeman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/885/comments","statuses_url":"https://api.github.com/repos/presidentbeef/brakeman/statuses/1227bfb406776a8a6896558762a4e58f71959c94","head":{"label":"c0va23:feature/allow_extended_regexp_in_validate_format","ref":"feature/allow_extended_regexp_in_validate_format","sha":"1227bfb406776a8a6896558762a4e58f71959c94","user":{"login":"c0va23","id":587257,"avatar_url":"https://avatars.githubusercontent.com/u/587257?v=3","gravatar_id":"","url":"https://api.github.com/users/c0va23","html_url":"https://github.com/c0va23","followers_url":"https://api.github.com/users/c0va23/followers","following_url":"https://api.github.com/users/c0va23/following{/other_user}","gists_url":"https://api.github.com/users/c0va23/gists{/gist_id}","starred_url":"https://api.github.com/users/c0va23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0va23/subscriptions","organizations_url":"https://api.github.com/users/c0va23/orgs","repos_url":"https://api.github.com/users/c0va23/repos","events_url":"https://api.github.com/users/c0va23/events{/privacy}","received_events_url":"https://api.github.com/users/c0va23/received_events","type":"User","site_admin":false},"repo":{"id":59610539,"name":"brakeman","full_name":"c0va23/brakeman","owner":{"login":"c0va23","id":587257,"avatar_url":"https://avatars.githubusercontent.com/u/587257?v=3","gravatar_id":"","url":"https://api.github.com/users/c0va23","html_url":"https://github.com/c0va23","followers_url":"https://api.github.com/users/c0va23/followers","following_url":"https://api.github.com/users/c0va23/following{/other_user}","gists_url":"https://api.github.com/users/c0va23/gists{/gist_id}","starred_url":"https://api.github.com/users/c0va23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0va23/subscriptions","organizations_url":"https://api.github.com/users/c0va23/orgs","repos_url":"https://api.github.com/users/c0va23/repos","events_url":"https://api.github.com/users/c0va23/events{/privacy}","received_events_url":"https://api.github.com/users/c0va23/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/c0va23/brakeman","description":"A static analysis security vulnerability scanner for Ruby on Rails applications","fork":true,"url":"https://api.github.com/repos/c0va23/brakeman","forks_url":"https://api.github.com/repos/c0va23/brakeman/forks","keys_url":"https://api.github.com/repos/c0va23/brakeman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/c0va23/brakeman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/c0va23/brakeman/teams","hooks_url":"https://api.github.com/repos/c0va23/brakeman/hooks","issue_events_url":"https://api.github.com/repos/c0va23/brakeman/issues/events{/number}","events_url":"https://api.github.com/repos/c0va23/brakeman/events","assignees_url":"https://api.github.com/repos/c0va23/brakeman/assignees{/user}","branches_url":"https://api.github.com/repos/c0va23/brakeman/branches{/branch}","tags_url":"https://api.github.com/repos/c0va23/brakeman/tags","blobs_url":"https://api.github.com/repos/c0va23/brakeman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/c0va23/brakeman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/c0va23/brakeman/git/refs{/sha}","trees_url":"https://api.github.com/repos/c0va23/brakeman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/c0va23/brakeman/statuses/{sha}","languages_url":"https://api.github.com/repos/c0va23/brakeman/languages","stargazers_url":"https://api.github.com/repos/c0va23/brakeman/stargazers","contributors_url":"https://api.github.com/repos/c0va23/brakeman/contributors","subscribers_url":"https://api.github.com/repos/c0va23/brakeman/subscribers","subscription_url":"https://api.github.com/repos/c0va23/brakeman/subscription","commits_url":"https://api.github.com/repos/c0va23/brakeman/commits{/sha}","git_commits_url":"https://api.github.com/repos/c0va23/brakeman/git/commits{/sha}","comments_url":"https://api.github.com/repos/c0va23/brakeman/comments{/number}","issue_comment_url":"https://api.github.com/repos/c0va23/brakeman/issues/comments{/number}","contents_url":"https://api.github.com/repos/c0va23/brakeman/contents/{+path}","compare_url":"https://api.github.com/repos/c0va23/brakeman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/c0va23/brakeman/merges","archive_url":"https://api.github.com/repos/c0va23/brakeman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/c0va23/brakeman/downloads","issues_url":"https://api.github.com/repos/c0va23/brakeman/issues{/number}","pulls_url":"https://api.github.com/repos/c0va23/brakeman/pulls{/number}","milestones_url":"https://api.github.com/repos/c0va23/brakeman/milestones{/number}","notifications_url":"https://api.github.com/repos/c0va23/brakeman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/c0va23/brakeman/labels{/name}","releases_url":"https://api.github.com/repos/c0va23/brakeman/releases{/id}","deployments_url":"https://api.github.com/repos/c0va23/brakeman/deployments","created_at":"2016-05-24T21:40:23Z","updated_at":"2016-05-24T21:40:28Z","pushed_at":"2016-05-24T21:57:35Z","git_url":"git://github.com/c0va23/brakeman.git","ssh_url":"git@github.com:c0va23/brakeman.git","clone_url":"https://github.com/c0va23/brakeman.git","svn_url":"https://github.com/c0va23/brakeman","homepage":"http://brakemanscanner.org/","size":19578,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"presidentbeef:master","ref":"master","sha":"bde927f9a9ba5607f064646d99d7e3b7b19c9350","user":{"login":"presidentbeef","id":75613,"avatar_url":"https://avatars.githubusercontent.com/u/75613?v=3","gravatar_id":"","url":"https://api.github.com/users/presidentbeef","html_url":"https://github.com/presidentbeef","followers_url":"https://api.github.com/users/presidentbeef/followers","following_url":"https://api.github.com/users/presidentbeef/following{/other_user}","gists_url":"https://api.github.com/users/presidentbeef/gists{/gist_id}","starred_url":"https://api.github.com/users/presidentbeef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/presidentbeef/subscriptions","organizations_url":"https://api.github.com/users/presidentbeef/orgs","repos_url":"https://api.github.com/users/presidentbeef/repos","events_url":"https://api.github.com/users/presidentbeef/events{/privacy}","received_events_url":"https://api.github.com/users/presidentbeef/received_events","type":"User","site_admin":false},"repo":{"id":865250,"name":"brakeman","full_name":"presidentbeef/brakeman","owner":{"login":"presidentbeef","id":75613,"avatar_url":"https://avatars.githubusercontent.com/u/75613?v=3","gravatar_id":"","url":"https://api.github.com/users/presidentbeef","html_url":"https://github.com/presidentbeef","followers_url":"https://api.github.com/users/presidentbeef/followers","following_url":"https://api.github.com/users/presidentbeef/following{/other_user}","gists_url":"https://api.github.com/users/presidentbeef/gists{/gist_id}","starred_url":"https://api.github.com/users/presidentbeef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/presidentbeef/subscriptions","organizations_url":"https://api.github.com/users/presidentbeef/orgs","repos_url":"https://api.github.com/users/presidentbeef/repos","events_url":"https://api.github.com/users/presidentbeef/events{/privacy}","received_events_url":"https://api.github.com/users/presidentbeef/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/presidentbeef/brakeman","description":"A static analysis security vulnerability scanner for Ruby on Rails applications","fork":false,"url":"https://api.github.com/repos/presidentbeef/brakeman","forks_url":"https://api.github.com/repos/presidentbeef/brakeman/forks","keys_url":"https://api.github.com/repos/presidentbeef/brakeman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/presidentbeef/brakeman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/presidentbeef/brakeman/teams","hooks_url":"https://api.github.com/repos/presidentbeef/brakeman/hooks","issue_events_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/events{/number}","events_url":"https://api.github.com/repos/presidentbeef/brakeman/events","assignees_url":"https://api.github.com/repos/presidentbeef/brakeman/assignees{/user}","branches_url":"https://api.github.com/repos/presidentbeef/brakeman/branches{/branch}","tags_url":"https://api.github.com/repos/presidentbeef/brakeman/tags","blobs_url":"https://api.github.com/repos/presidentbeef/brakeman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/presidentbeef/brakeman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/presidentbeef/brakeman/git/refs{/sha}","trees_url":"https://api.github.com/repos/presidentbeef/brakeman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/presidentbeef/brakeman/statuses/{sha}","languages_url":"https://api.github.com/repos/presidentbeef/brakeman/languages","stargazers_url":"https://api.github.com/repos/presidentbeef/brakeman/stargazers","contributors_url":"https://api.github.com/repos/presidentbeef/brakeman/contributors","subscribers_url":"https://api.github.com/repos/presidentbeef/brakeman/subscribers","subscription_url":"https://api.github.com/repos/presidentbeef/brakeman/subscription","commits_url":"https://api.github.com/repos/presidentbeef/brakeman/commits{/sha}","git_commits_url":"https://api.github.com/repos/presidentbeef/brakeman/git/commits{/sha}","comments_url":"https://api.github.com/repos/presidentbeef/brakeman/comments{/number}","issue_comment_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/comments{/number}","contents_url":"https://api.github.com/repos/presidentbeef/brakeman/contents/{+path}","compare_url":"https://api.github.com/repos/presidentbeef/brakeman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/presidentbeef/brakeman/merges","archive_url":"https://api.github.com/repos/presidentbeef/brakeman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/presidentbeef/brakeman/downloads","issues_url":"https://api.github.com/repos/presidentbeef/brakeman/issues{/number}","pulls_url":"https://api.github.com/repos/presidentbeef/brakeman/pulls{/number}","milestones_url":"https://api.github.com/repos/presidentbeef/brakeman/milestones{/number}","notifications_url":"https://api.github.com/repos/presidentbeef/brakeman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/presidentbeef/brakeman/labels{/name}","releases_url":"https://api.github.com/repos/presidentbeef/brakeman/releases{/id}","deployments_url":"https://api.github.com/repos/presidentbeef/brakeman/deployments","created_at":"2010-08-27T00:00:58Z","updated_at":"2016-05-24T16:51:33Z","pushed_at":"2016-05-24T21:57:36Z","git_url":"git://github.com/presidentbeef/brakeman.git","ssh_url":"git@github.com:presidentbeef/brakeman.git","clone_url":"https://github.com/presidentbeef/brakeman.git","svn_url":"https://github.com/presidentbeef/brakeman","homepage":"http://brakemanscanner.org/","size":21222,"stargazers_count":3378,"watchers_count":3378,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":305,"mirror_url":null,"open_issues_count":42,"forks":305,"open_issues":42,"watchers":3378,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/presidentbeef/brakeman/pulls/885"},"html":{"href":"https://github.com/presidentbeef/brakeman/pull/885"},"issue":{"href":"https://api.github.com/repos/presidentbeef/brakeman/issues/885"},"comments":{"href":"https://api.github.com/repos/presidentbeef/brakeman/issues/885/comments"},"review_comments":{"href":"https://api.github.com/repos/presidentbeef/brakeman/pulls/885/comments"},"review_comment":{"href":"https://api.github.com/repos/presidentbeef/brakeman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/presidentbeef/brakeman/pulls/885/commits"},"statuses":{"href":"https://api.github.com/repos/presidentbeef/brakeman/statuses/1227bfb406776a8a6896558762a4e58f71959c94"}}}}
{"actor":{"display_login":"presidentbeef"}}