{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/comments/35911677","id":35911677,"diff_hunk":"@@ -30,12 +36,15 @@ local msg_any         = octet^0\n local msg_utf8        = bom * utf8_string\n local msg             = msg_utf8 + msg_any\n local hostname        = nilvalue + printusascii^-255\n-local sd_name         = printusascii^-32\n-local param_name      = sd_name\n-local param_value     = utf8_string\n-local sd_param        = param_name * '=\"' * param_value * '\"'\n+local sd_name         = (printusascii - l.S'=]\" ')^-32\n+local param_name      = l.C(sd_name)\n+local esc             = l.P'\\\\'\n+local param_value_esc = l.S'\"\\\\]'\n+local param_value     = l.C(((octet - param_value_esc) + (esc * octet))^0) / unescape_param_value\n local sd_id           = sd_name","path":"modules/syslog.lua","position":30,"original_position":30,"commit_id":"c89c1b7ddcbea6d6463c9ba8a88bf17523b8dc51","original_commit_id":"c89c1b7ddcbea6d6463c9ba8a88bf17523b8dc51","user":{"login":"trink","id":795988,"avatar_url":"https://avatars.githubusercontent.com/u/795988?v=3","gravatar_id":"","url":"https://api.github.com/users/trink","html_url":"https://github.com/trink","followers_url":"https://api.github.com/users/trink/followers","following_url":"https://api.github.com/users/trink/following{/other_user}","gists_url":"https://api.github.com/users/trink/gists{/gist_id}","starred_url":"https://api.github.com/users/trink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trink/subscriptions","organizations_url":"https://api.github.com/users/trink/orgs","repos_url":"https://api.github.com/users/trink/repos","events_url":"https://api.github.com/users/trink/events{/privacy}","received_events_url":"https://api.github.com/users/trink/received_events","type":"User","site_admin":false},"body":"We may want to include the sd_id in the message also for easier filtering of structured data types","created_at":"2015-07-30T19:42:04Z","updated_at":"2015-07-30T19:42:04Z","html_url":"https://github.com/mozilla-services/lua_sandbox/pull/94#discussion_r35911677","pull_request_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/comments/35911677"},"html":{"href":"https://github.com/mozilla-services/lua_sandbox/pull/94#discussion_r35911677"},"pull_request":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/94","id":41069033,"html_url":"https://github.com/mozilla-services/lua_sandbox/pull/94","diff_url":"https://github.com/mozilla-services/lua_sandbox/pull/94.diff","patch_url":"https://github.com/mozilla-services/lua_sandbox/pull/94.patch","issue_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/94","number":94,"state":"open","locked":false,"title":"syslog.lua: fix parsing of RFC 5424 structured data","user":{"login":"jedisct1","id":124872,"avatar_url":"https://avatars.githubusercontent.com/u/124872?v=3","gravatar_id":"","url":"https://api.github.com/users/jedisct1","html_url":"https://github.com/jedisct1","followers_url":"https://api.github.com/users/jedisct1/followers","following_url":"https://api.github.com/users/jedisct1/following{/other_user}","gists_url":"https://api.github.com/users/jedisct1/gists{/gist_id}","starred_url":"https://api.github.com/users/jedisct1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedisct1/subscriptions","organizations_url":"https://api.github.com/users/jedisct1/orgs","repos_url":"https://api.github.com/users/jedisct1/repos","events_url":"https://api.github.com/users/jedisct1/events{/privacy}","received_events_url":"https://api.github.com/users/jedisct1/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-28T22:36:56Z","updated_at":"2015-07-30T19:42:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de01066d5f42e084b19038551b1f3c316042d869","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/94/commits","review_comments_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/94/comments","review_comment_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/94/comments","statuses_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/statuses/c89c1b7ddcbea6d6463c9ba8a88bf17523b8dc51","head":{"label":"jedisct1:rfc5424-sd","ref":"rfc5424-sd","sha":"c89c1b7ddcbea6d6463c9ba8a88bf17523b8dc51","user":{"login":"jedisct1","id":124872,"avatar_url":"https://avatars.githubusercontent.com/u/124872?v=3","gravatar_id":"","url":"https://api.github.com/users/jedisct1","html_url":"https://github.com/jedisct1","followers_url":"https://api.github.com/users/jedisct1/followers","following_url":"https://api.github.com/users/jedisct1/following{/other_user}","gists_url":"https://api.github.com/users/jedisct1/gists{/gist_id}","starred_url":"https://api.github.com/users/jedisct1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedisct1/subscriptions","organizations_url":"https://api.github.com/users/jedisct1/orgs","repos_url":"https://api.github.com/users/jedisct1/repos","events_url":"https://api.github.com/users/jedisct1/events{/privacy}","received_events_url":"https://api.github.com/users/jedisct1/received_events","type":"User","site_admin":false},"repo":{"id":39859271,"name":"lua_sandbox","full_name":"jedisct1/lua_sandbox","owner":{"login":"jedisct1","id":124872,"avatar_url":"https://avatars.githubusercontent.com/u/124872?v=3","gravatar_id":"","url":"https://api.github.com/users/jedisct1","html_url":"https://github.com/jedisct1","followers_url":"https://api.github.com/users/jedisct1/followers","following_url":"https://api.github.com/users/jedisct1/following{/other_user}","gists_url":"https://api.github.com/users/jedisct1/gists{/gist_id}","starred_url":"https://api.github.com/users/jedisct1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedisct1/subscriptions","organizations_url":"https://api.github.com/users/jedisct1/orgs","repos_url":"https://api.github.com/users/jedisct1/repos","events_url":"https://api.github.com/users/jedisct1/events{/privacy}","received_events_url":"https://api.github.com/users/jedisct1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jedisct1/lua_sandbox","description":"Generic Lua sandbox for dynamic data analysis","fork":true,"url":"https://api.github.com/repos/jedisct1/lua_sandbox","forks_url":"https://api.github.com/repos/jedisct1/lua_sandbox/forks","keys_url":"https://api.github.com/repos/jedisct1/lua_sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jedisct1/lua_sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jedisct1/lua_sandbox/teams","hooks_url":"https://api.github.com/repos/jedisct1/lua_sandbox/hooks","issue_events_url":"https://api.github.com/repos/jedisct1/lua_sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/jedisct1/lua_sandbox/events","assignees_url":"https://api.github.com/repos/jedisct1/lua_sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/jedisct1/lua_sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/jedisct1/lua_sandbox/tags","blobs_url":"https://api.github.com/repos/jedisct1/lua_sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jedisct1/lua_sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jedisct1/lua_sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/jedisct1/lua_sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jedisct1/lua_sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/jedisct1/lua_sandbox/languages","stargazers_url":"https://api.github.com/repos/jedisct1/lua_sandbox/stargazers","contributors_url":"https://api.github.com/repos/jedisct1/lua_sandbox/contributors","subscribers_url":"https://api.github.com/repos/jedisct1/lua_sandbox/subscribers","subscription_url":"https://api.github.com/repos/jedisct1/lua_sandbox/subscription","commits_url":"https://api.github.com/repos/jedisct1/lua_sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/jedisct1/lua_sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/jedisct1/lua_sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/jedisct1/lua_sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/jedisct1/lua_sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/jedisct1/lua_sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jedisct1/lua_sandbox/merges","archive_url":"https://api.github.com/repos/jedisct1/lua_sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jedisct1/lua_sandbox/downloads","issues_url":"https://api.github.com/repos/jedisct1/lua_sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/jedisct1/lua_sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/jedisct1/lua_sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/jedisct1/lua_sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jedisct1/lua_sandbox/labels{/name}","releases_url":"https://api.github.com/repos/jedisct1/lua_sandbox/releases{/id}","created_at":"2015-07-28T21:43:57Z","updated_at":"2015-07-28T21:43:58Z","pushed_at":"2015-07-30T18:05:22Z","git_url":"git://github.com/jedisct1/lua_sandbox.git","ssh_url":"git@github.com:jedisct1/lua_sandbox.git","clone_url":"https://github.com/jedisct1/lua_sandbox.git","svn_url":"https://github.com/jedisct1/lua_sandbox","homepage":"","size":1570,"stargazers_count":0,"watchers_count":0,"language":"C","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":"dev"}},"base":{"label":"mozilla-services:dev","ref":"dev","sha":"82ae00d85f3111ee77bf15dbcb97264f177a66ec","user":{"login":"mozilla-services","id":1066228,"avatar_url":"https://avatars.githubusercontent.com/u/1066228?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-services","html_url":"https://github.com/mozilla-services","followers_url":"https://api.github.com/users/mozilla-services/followers","following_url":"https://api.github.com/users/mozilla-services/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-services/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-services/subscriptions","organizations_url":"https://api.github.com/users/mozilla-services/orgs","repos_url":"https://api.github.com/users/mozilla-services/repos","events_url":"https://api.github.com/users/mozilla-services/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-services/received_events","type":"Organization","site_admin":false},"repo":{"id":14175255,"name":"lua_sandbox","full_name":"mozilla-services/lua_sandbox","owner":{"login":"mozilla-services","id":1066228,"avatar_url":"https://avatars.githubusercontent.com/u/1066228?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-services","html_url":"https://github.com/mozilla-services","followers_url":"https://api.github.com/users/mozilla-services/followers","following_url":"https://api.github.com/users/mozilla-services/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-services/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-services/subscriptions","organizations_url":"https://api.github.com/users/mozilla-services/orgs","repos_url":"https://api.github.com/users/mozilla-services/repos","events_url":"https://api.github.com/users/mozilla-services/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-services/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-services/lua_sandbox","description":"Generic Lua sandbox for dynamic data analysis","fork":false,"url":"https://api.github.com/repos/mozilla-services/lua_sandbox","forks_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/forks","keys_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/teams","hooks_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/hooks","issue_events_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/events","assignees_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/tags","blobs_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/languages","stargazers_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/stargazers","contributors_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/contributors","subscribers_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/subscribers","subscription_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/subscription","commits_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/merges","archive_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/downloads","issues_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-services/lua_sandbox/releases{/id}","created_at":"2013-11-06T14:45:55Z","updated_at":"2015-07-29T09:21:08Z","pushed_at":"2015-07-30T19:02:07Z","git_url":"git://github.com/mozilla-services/lua_sandbox.git","ssh_url":"git@github.com:mozilla-services/lua_sandbox.git","clone_url":"https://github.com/mozilla-services/lua_sandbox.git","svn_url":"https://github.com/mozilla-services/lua_sandbox","homepage":"","size":1570,"stargazers_count":41,"watchers_count":41,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":11,"forks":16,"open_issues":11,"watchers":41,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/94"},"html":{"href":"https://github.com/mozilla-services/lua_sandbox/pull/94"},"issue":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/94"},"comments":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-services/lua_sandbox/statuses/c89c1b7ddcbea6d6463c9ba8a88bf17523b8dc51"}}}}