{"action":"opened","number":19,"pull_request":{"url":"https://api.github.com/repos/openresty/lua-resty-core/pulls/19","id":56875285,"html_url":"https://github.com/openresty/lua-resty-core/pull/19","diff_url":"https://github.com/openresty/lua-resty-core/pull/19.diff","patch_url":"https://github.com/openresty/lua-resty-core/pull/19.patch","issue_url":"https://api.github.com/repos/openresty/lua-resty-core/issues/19","number":19,"state":"open","locked":false,"title":"Unmatched capture are set to false in capture table","user":{"login":"jdesgats","id":849031,"avatar_url":"https://avatars.githubusercontent.com/u/849031?v=3","gravatar_id":"","url":"https://api.github.com/users/jdesgats","html_url":"https://github.com/jdesgats","followers_url":"https://api.github.com/users/jdesgats/followers","following_url":"https://api.github.com/users/jdesgats/following{/other_user}","gists_url":"https://api.github.com/users/jdesgats/gists{/gist_id}","starred_url":"https://api.github.com/users/jdesgats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdesgats/subscriptions","organizations_url":"https://api.github.com/users/jdesgats/orgs","repos_url":"https://api.github.com/users/jdesgats/repos","events_url":"https://api.github.com/users/jdesgats/events{/privacy}","received_events_url":"https://api.github.com/users/jdesgats/received_events","type":"User","site_admin":false},"body":"This PR reflect the changes made in lua-nginx-module by https://github.com/openresty/lua-nginx-module/pull/653.\r\n\r\nNow unmatched capture groups in `ngx.re.match` and `ngx.re.gmatch` are\r\nset to `false` rather than nil. This prevents to create table with\r\nholes that don't play nice with `ipairs` or `#` operators.\r\n\r\nFor consistency, unmatched trailing captures (for instance in\r\n`ngx.re.match(\"hello\", \"(hello)(.+)?\")`) as well as named captures are\r\nalso set to `false`.","created_at":"2016-01-22T11:16:34Z","updated_at":"2016-01-22T11:16:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openresty/lua-resty-core/pulls/19/commits","review_comments_url":"https://api.github.com/repos/openresty/lua-resty-core/pulls/19/comments","review_comment_url":"https://api.github.com/repos/openresty/lua-resty-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openresty/lua-resty-core/issues/19/comments","statuses_url":"https://api.github.com/repos/openresty/lua-resty-core/statuses/ae186f92f7d9a97f0ef54a81dfad8b712b6c471b","head":{"label":"jdesgats:re-nomatch-false","ref":"re-nomatch-false","sha":"ae186f92f7d9a97f0ef54a81dfad8b712b6c471b","user":{"login":"jdesgats","id":849031,"avatar_url":"https://avatars.githubusercontent.com/u/849031?v=3","gravatar_id":"","url":"https://api.github.com/users/jdesgats","html_url":"https://github.com/jdesgats","followers_url":"https://api.github.com/users/jdesgats/followers","following_url":"https://api.github.com/users/jdesgats/following{/other_user}","gists_url":"https://api.github.com/users/jdesgats/gists{/gist_id}","starred_url":"https://api.github.com/users/jdesgats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdesgats/subscriptions","organizations_url":"https://api.github.com/users/jdesgats/orgs","repos_url":"https://api.github.com/users/jdesgats/repos","events_url":"https://api.github.com/users/jdesgats/events{/privacy}","received_events_url":"https://api.github.com/users/jdesgats/received_events","type":"User","site_admin":false},"repo":{"id":50176572,"name":"lua-resty-core","full_name":"jdesgats/lua-resty-core","owner":{"login":"jdesgats","id":849031,"avatar_url":"https://avatars.githubusercontent.com/u/849031?v=3","gravatar_id":"","url":"https://api.github.com/users/jdesgats","html_url":"https://github.com/jdesgats","followers_url":"https://api.github.com/users/jdesgats/followers","following_url":"https://api.github.com/users/jdesgats/following{/other_user}","gists_url":"https://api.github.com/users/jdesgats/gists{/gist_id}","starred_url":"https://api.github.com/users/jdesgats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdesgats/subscriptions","organizations_url":"https://api.github.com/users/jdesgats/orgs","repos_url":"https://api.github.com/users/jdesgats/repos","events_url":"https://api.github.com/users/jdesgats/events{/privacy}","received_events_url":"https://api.github.com/users/jdesgats/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jdesgats/lua-resty-core","description":"New FFI-based API for lua-nginx-module","fork":true,"url":"https://api.github.com/repos/jdesgats/lua-resty-core","forks_url":"https://api.github.com/repos/jdesgats/lua-resty-core/forks","keys_url":"https://api.github.com/repos/jdesgats/lua-resty-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdesgats/lua-resty-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdesgats/lua-resty-core/teams","hooks_url":"https://api.github.com/repos/jdesgats/lua-resty-core/hooks","issue_events_url":"https://api.github.com/repos/jdesgats/lua-resty-core/issues/events{/number}","events_url":"https://api.github.com/repos/jdesgats/lua-resty-core/events","assignees_url":"https://api.github.com/repos/jdesgats/lua-resty-core/assignees{/user}","branches_url":"https://api.github.com/repos/jdesgats/lua-resty-core/branches{/branch}","tags_url":"https://api.github.com/repos/jdesgats/lua-resty-core/tags","blobs_url":"https://api.github.com/repos/jdesgats/lua-resty-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdesgats/lua-resty-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdesgats/lua-resty-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdesgats/lua-resty-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdesgats/lua-resty-core/statuses/{sha}","languages_url":"https://api.github.com/repos/jdesgats/lua-resty-core/languages","stargazers_url":"https://api.github.com/repos/jdesgats/lua-resty-core/stargazers","contributors_url":"https://api.github.com/repos/jdesgats/lua-resty-core/contributors","subscribers_url":"https://api.github.com/repos/jdesgats/lua-resty-core/subscribers","subscription_url":"https://api.github.com/repos/jdesgats/lua-resty-core/subscription","commits_url":"https://api.github.com/repos/jdesgats/lua-resty-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdesgats/lua-resty-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdesgats/lua-resty-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdesgats/lua-resty-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/jdesgats/lua-resty-core/contents/{+path}","compare_url":"https://api.github.com/repos/jdesgats/lua-resty-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdesgats/lua-resty-core/merges","archive_url":"https://api.github.com/repos/jdesgats/lua-resty-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdesgats/lua-resty-core/downloads","issues_url":"https://api.github.com/repos/jdesgats/lua-resty-core/issues{/number}","pulls_url":"https://api.github.com/repos/jdesgats/lua-resty-core/pulls{/number}","milestones_url":"https://api.github.com/repos/jdesgats/lua-resty-core/milestones{/number}","notifications_url":"https://api.github.com/repos/jdesgats/lua-resty-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdesgats/lua-resty-core/labels{/name}","releases_url":"https://api.github.com/repos/jdesgats/lua-resty-core/releases{/id}","deployments_url":"https://api.github.com/repos/jdesgats/lua-resty-core/deployments","created_at":"2016-01-22T11:10:29Z","updated_at":"2016-01-22T11:10:29Z","pushed_at":"2016-01-22T11:11:35Z","git_url":"git://github.com/jdesgats/lua-resty-core.git","ssh_url":"git@github.com:jdesgats/lua-resty-core.git","clone_url":"https://github.com/jdesgats/lua-resty-core.git","svn_url":"https://github.com/jdesgats/lua-resty-core","homepage":null,"size":339,"stargazers_count":0,"watchers_count":0,"language":"Lua","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":"openresty:master","ref":"master","sha":"492116d70cb07b81f67a19bb65cb304eb9de93a6","user":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"repo":{"id":9782547,"name":"lua-resty-core","full_name":"openresty/lua-resty-core","owner":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openresty/lua-resty-core","description":"New FFI-based API for lua-nginx-module","fork":false,"url":"https://api.github.com/repos/openresty/lua-resty-core","forks_url":"https://api.github.com/repos/openresty/lua-resty-core/forks","keys_url":"https://api.github.com/repos/openresty/lua-resty-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openresty/lua-resty-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openresty/lua-resty-core/teams","hooks_url":"https://api.github.com/repos/openresty/lua-resty-core/hooks","issue_events_url":"https://api.github.com/repos/openresty/lua-resty-core/issues/events{/number}","events_url":"https://api.github.com/repos/openresty/lua-resty-core/events","assignees_url":"https://api.github.com/repos/openresty/lua-resty-core/assignees{/user}","branches_url":"https://api.github.com/repos/openresty/lua-resty-core/branches{/branch}","tags_url":"https://api.github.com/repos/openresty/lua-resty-core/tags","blobs_url":"https://api.github.com/repos/openresty/lua-resty-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openresty/lua-resty-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openresty/lua-resty-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/openresty/lua-resty-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openresty/lua-resty-core/statuses/{sha}","languages_url":"https://api.github.com/repos/openresty/lua-resty-core/languages","stargazers_url":"https://api.github.com/repos/openresty/lua-resty-core/stargazers","contributors_url":"https://api.github.com/repos/openresty/lua-resty-core/contributors","subscribers_url":"https://api.github.com/repos/openresty/lua-resty-core/subscribers","subscription_url":"https://api.github.com/repos/openresty/lua-resty-core/subscription","commits_url":"https://api.github.com/repos/openresty/lua-resty-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/openresty/lua-resty-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/openresty/lua-resty-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/openresty/lua-resty-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/openresty/lua-resty-core/contents/{+path}","compare_url":"https://api.github.com/repos/openresty/lua-resty-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openresty/lua-resty-core/merges","archive_url":"https://api.github.com/repos/openresty/lua-resty-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openresty/lua-resty-core/downloads","issues_url":"https://api.github.com/repos/openresty/lua-resty-core/issues{/number}","pulls_url":"https://api.github.com/repos/openresty/lua-resty-core/pulls{/number}","milestones_url":"https://api.github.com/repos/openresty/lua-resty-core/milestones{/number}","notifications_url":"https://api.github.com/repos/openresty/lua-resty-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openresty/lua-resty-core/labels{/name}","releases_url":"https://api.github.com/repos/openresty/lua-resty-core/releases{/id}","deployments_url":"https://api.github.com/repos/openresty/lua-resty-core/deployments","created_at":"2013-04-30T23:53:32Z","updated_at":"2016-01-22T07:30:30Z","pushed_at":"2016-01-14T22:51:32Z","git_url":"git://github.com/openresty/lua-resty-core.git","ssh_url":"git@github.com:openresty/lua-resty-core.git","clone_url":"https://github.com/openresty/lua-resty-core.git","svn_url":"https://github.com/openresty/lua-resty-core","homepage":null,"size":409,"stargazers_count":111,"watchers_count":111,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":6,"forks":22,"open_issues":6,"watchers":111,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openresty/lua-resty-core/pulls/19"},"html":{"href":"https://github.com/openresty/lua-resty-core/pull/19"},"issue":{"href":"https://api.github.com/repos/openresty/lua-resty-core/issues/19"},"comments":{"href":"https://api.github.com/repos/openresty/lua-resty-core/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/openresty/lua-resty-core/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/openresty/lua-resty-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openresty/lua-resty-core/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/openresty/lua-resty-core/statuses/ae186f92f7d9a97f0ef54a81dfad8b712b6c471b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":120,"deletions":10,"changed_files":2}}