{"action":"created","comment":{"url":"https://api.github.com/repos/PrismJS/prism/pulls/comments/76143291","id":76143291,"diff_hunk":"@@ -0,0 +1,25 @@\n+/**\n+ * Original by Scott Helme.\n+ *\n+ * Reference: https://scotthelme.co.uk/csp-cheat-sheet/\n+ *\n+ * Supports the following:\n+ *  - CSP Level 1\n+ *  - CSP Level 2\n+ *  - CSP Level 3\n+ */\n+\n+Prism.languages.csp = {\n+\t'directive':  {\n+             pattern: /\\b(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|script|style|worker)-src|disown-opener|form-action|frame-ancestors|plugin-types|referrer|reflected-xss|report-to|report-uri |require-sri-for|sandbox|upgrade-insecure-requests)\\b/i,","path":"components/prism-csp.js","position":14,"original_position":14,"commit_id":"52b5b938cec14e2bd6c06312353721fcb6349f4a","original_commit_id":"52b5b938cec14e2bd6c06312353721fcb6349f4a","user":{"login":"valtlai","id":5496284,"avatar_url":"https://avatars.githubusercontent.com/u/5496284?v=3","gravatar_id":"","url":"https://api.github.com/users/valtlai","html_url":"https://github.com/valtlai","followers_url":"https://api.github.com/users/valtlai/followers","following_url":"https://api.github.com/users/valtlai/following{/other_user}","gists_url":"https://api.github.com/users/valtlai/gists{/gist_id}","starred_url":"https://api.github.com/users/valtlai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valtlai/subscriptions","organizations_url":"https://api.github.com/users/valtlai/orgs","repos_url":"https://api.github.com/users/valtlai/repos","events_url":"https://api.github.com/users/valtlai/events{/privacy}","received_events_url":"https://api.github.com/users/valtlai/received_events","type":"User","site_admin":false},"body":"There’s extra space after “report-uri”.","created_at":"2016-08-24T21:33:26Z","updated_at":"2016-08-24T21:33:26Z","html_url":"https://github.com/PrismJS/prism/pull/1016#discussion_r76143291","pull_request_url":"https://api.github.com/repos/PrismJS/prism/pulls/1016","_links":{"self":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/comments/76143291"},"html":{"href":"https://github.com/PrismJS/prism/pull/1016#discussion_r76143291"},"pull_request":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/1016"}}},"pull_request":{"url":"https://api.github.com/repos/PrismJS/prism/pulls/1016","id":82603431,"html_url":"https://github.com/PrismJS/prism/pull/1016","diff_url":"https://github.com/PrismJS/prism/pull/1016.diff","patch_url":"https://github.com/PrismJS/prism/pull/1016.patch","issue_url":"https://api.github.com/repos/PrismJS/prism/issues/1016","number":1016,"state":"open","locked":false,"title":"Add support for HTTP security headers.","user":{"login":"ScottHelme","id":5352840,"avatar_url":"https://avatars.githubusercontent.com/u/5352840?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottHelme","html_url":"https://github.com/ScottHelme","followers_url":"https://api.github.com/users/ScottHelme/followers","following_url":"https://api.github.com/users/ScottHelme/following{/other_user}","gists_url":"https://api.github.com/users/ScottHelme/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottHelme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottHelme/subscriptions","organizations_url":"https://api.github.com/users/ScottHelme/orgs","repos_url":"https://api.github.com/users/ScottHelme/repos","events_url":"https://api.github.com/users/ScottHelme/events{/privacy}","received_events_url":"https://api.github.com/users/ScottHelme/received_events","type":"User","site_admin":false},"body":"I often find myself writing configurations for CSP, HSTS and HPKP. These changes add support for these configurations to Prism. ","created_at":"2016-08-24T19:34:15Z","updated_at":"2016-08-24T21:33:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2750418e1118f43f587f11e13176dc502e5a8f84","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PrismJS/prism/pulls/1016/commits","review_comments_url":"https://api.github.com/repos/PrismJS/prism/pulls/1016/comments","review_comment_url":"https://api.github.com/repos/PrismJS/prism/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrismJS/prism/issues/1016/comments","statuses_url":"https://api.github.com/repos/PrismJS/prism/statuses/52b5b938cec14e2bd6c06312353721fcb6349f4a","head":{"label":"ScottHelme:gh-pages","ref":"gh-pages","sha":"52b5b938cec14e2bd6c06312353721fcb6349f4a","user":{"login":"ScottHelme","id":5352840,"avatar_url":"https://avatars.githubusercontent.com/u/5352840?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottHelme","html_url":"https://github.com/ScottHelme","followers_url":"https://api.github.com/users/ScottHelme/followers","following_url":"https://api.github.com/users/ScottHelme/following{/other_user}","gists_url":"https://api.github.com/users/ScottHelme/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottHelme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottHelme/subscriptions","organizations_url":"https://api.github.com/users/ScottHelme/orgs","repos_url":"https://api.github.com/users/ScottHelme/repos","events_url":"https://api.github.com/users/ScottHelme/events{/privacy}","received_events_url":"https://api.github.com/users/ScottHelme/received_events","type":"User","site_admin":false},"repo":{"id":66492946,"name":"prism","full_name":"ScottHelme/prism","owner":{"login":"ScottHelme","id":5352840,"avatar_url":"https://avatars.githubusercontent.com/u/5352840?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottHelme","html_url":"https://github.com/ScottHelme","followers_url":"https://api.github.com/users/ScottHelme/followers","following_url":"https://api.github.com/users/ScottHelme/following{/other_user}","gists_url":"https://api.github.com/users/ScottHelme/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottHelme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottHelme/subscriptions","organizations_url":"https://api.github.com/users/ScottHelme/orgs","repos_url":"https://api.github.com/users/ScottHelme/repos","events_url":"https://api.github.com/users/ScottHelme/events{/privacy}","received_events_url":"https://api.github.com/users/ScottHelme/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ScottHelme/prism","description":"Lightweight, robust, elegant syntax highlighting.","fork":true,"url":"https://api.github.com/repos/ScottHelme/prism","forks_url":"https://api.github.com/repos/ScottHelme/prism/forks","keys_url":"https://api.github.com/repos/ScottHelme/prism/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ScottHelme/prism/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ScottHelme/prism/teams","hooks_url":"https://api.github.com/repos/ScottHelme/prism/hooks","issue_events_url":"https://api.github.com/repos/ScottHelme/prism/issues/events{/number}","events_url":"https://api.github.com/repos/ScottHelme/prism/events","assignees_url":"https://api.github.com/repos/ScottHelme/prism/assignees{/user}","branches_url":"https://api.github.com/repos/ScottHelme/prism/branches{/branch}","tags_url":"https://api.github.com/repos/ScottHelme/prism/tags","blobs_url":"https://api.github.com/repos/ScottHelme/prism/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ScottHelme/prism/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ScottHelme/prism/git/refs{/sha}","trees_url":"https://api.github.com/repos/ScottHelme/prism/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ScottHelme/prism/statuses/{sha}","languages_url":"https://api.github.com/repos/ScottHelme/prism/languages","stargazers_url":"https://api.github.com/repos/ScottHelme/prism/stargazers","contributors_url":"https://api.github.com/repos/ScottHelme/prism/contributors","subscribers_url":"https://api.github.com/repos/ScottHelme/prism/subscribers","subscription_url":"https://api.github.com/repos/ScottHelme/prism/subscription","commits_url":"https://api.github.com/repos/ScottHelme/prism/commits{/sha}","git_commits_url":"https://api.github.com/repos/ScottHelme/prism/git/commits{/sha}","comments_url":"https://api.github.com/repos/ScottHelme/prism/comments{/number}","issue_comment_url":"https://api.github.com/repos/ScottHelme/prism/issues/comments{/number}","contents_url":"https://api.github.com/repos/ScottHelme/prism/contents/{+path}","compare_url":"https://api.github.com/repos/ScottHelme/prism/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ScottHelme/prism/merges","archive_url":"https://api.github.com/repos/ScottHelme/prism/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ScottHelme/prism/downloads","issues_url":"https://api.github.com/repos/ScottHelme/prism/issues{/number}","pulls_url":"https://api.github.com/repos/ScottHelme/prism/pulls{/number}","milestones_url":"https://api.github.com/repos/ScottHelme/prism/milestones{/number}","notifications_url":"https://api.github.com/repos/ScottHelme/prism/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ScottHelme/prism/labels{/name}","releases_url":"https://api.github.com/repos/ScottHelme/prism/releases{/id}","deployments_url":"https://api.github.com/repos/ScottHelme/prism/deployments","created_at":"2016-08-24T19:23:57Z","updated_at":"2016-08-24T19:24:00Z","pushed_at":"2016-08-24T21:28:33Z","git_url":"git://github.com/ScottHelme/prism.git","ssh_url":"git@github.com:ScottHelme/prism.git","clone_url":"https://github.com/ScottHelme/prism.git","svn_url":"https://github.com/ScottHelme/prism","homepage":"http://prismjs.com","size":3884,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"PrismJS:gh-pages","ref":"gh-pages","sha":"e57e26d5d5db94d2b4dbc14d0ba010ed622081e7","user":{"login":"PrismJS","id":11140484,"avatar_url":"https://avatars.githubusercontent.com/u/11140484?v=3","gravatar_id":"","url":"https://api.github.com/users/PrismJS","html_url":"https://github.com/PrismJS","followers_url":"https://api.github.com/users/PrismJS/followers","following_url":"https://api.github.com/users/PrismJS/following{/other_user}","gists_url":"https://api.github.com/users/PrismJS/gists{/gist_id}","starred_url":"https://api.github.com/users/PrismJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrismJS/subscriptions","organizations_url":"https://api.github.com/users/PrismJS/orgs","repos_url":"https://api.github.com/users/PrismJS/repos","events_url":"https://api.github.com/users/PrismJS/events{/privacy}","received_events_url":"https://api.github.com/users/PrismJS/received_events","type":"Organization","site_admin":false},"repo":{"id":4979467,"name":"prism","full_name":"PrismJS/prism","owner":{"login":"PrismJS","id":11140484,"avatar_url":"https://avatars.githubusercontent.com/u/11140484?v=3","gravatar_id":"","url":"https://api.github.com/users/PrismJS","html_url":"https://github.com/PrismJS","followers_url":"https://api.github.com/users/PrismJS/followers","following_url":"https://api.github.com/users/PrismJS/following{/other_user}","gists_url":"https://api.github.com/users/PrismJS/gists{/gist_id}","starred_url":"https://api.github.com/users/PrismJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrismJS/subscriptions","organizations_url":"https://api.github.com/users/PrismJS/orgs","repos_url":"https://api.github.com/users/PrismJS/repos","events_url":"https://api.github.com/users/PrismJS/events{/privacy}","received_events_url":"https://api.github.com/users/PrismJS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PrismJS/prism","description":"Lightweight, robust, elegant syntax highlighting.","fork":false,"url":"https://api.github.com/repos/PrismJS/prism","forks_url":"https://api.github.com/repos/PrismJS/prism/forks","keys_url":"https://api.github.com/repos/PrismJS/prism/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrismJS/prism/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrismJS/prism/teams","hooks_url":"https://api.github.com/repos/PrismJS/prism/hooks","issue_events_url":"https://api.github.com/repos/PrismJS/prism/issues/events{/number}","events_url":"https://api.github.com/repos/PrismJS/prism/events","assignees_url":"https://api.github.com/repos/PrismJS/prism/assignees{/user}","branches_url":"https://api.github.com/repos/PrismJS/prism/branches{/branch}","tags_url":"https://api.github.com/repos/PrismJS/prism/tags","blobs_url":"https://api.github.com/repos/PrismJS/prism/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrismJS/prism/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrismJS/prism/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrismJS/prism/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrismJS/prism/statuses/{sha}","languages_url":"https://api.github.com/repos/PrismJS/prism/languages","stargazers_url":"https://api.github.com/repos/PrismJS/prism/stargazers","contributors_url":"https://api.github.com/repos/PrismJS/prism/contributors","subscribers_url":"https://api.github.com/repos/PrismJS/prism/subscribers","subscription_url":"https://api.github.com/repos/PrismJS/prism/subscription","commits_url":"https://api.github.com/repos/PrismJS/prism/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrismJS/prism/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrismJS/prism/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrismJS/prism/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrismJS/prism/contents/{+path}","compare_url":"https://api.github.com/repos/PrismJS/prism/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrismJS/prism/merges","archive_url":"https://api.github.com/repos/PrismJS/prism/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrismJS/prism/downloads","issues_url":"https://api.github.com/repos/PrismJS/prism/issues{/number}","pulls_url":"https://api.github.com/repos/PrismJS/prism/pulls{/number}","milestones_url":"https://api.github.com/repos/PrismJS/prism/milestones{/number}","notifications_url":"https://api.github.com/repos/PrismJS/prism/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrismJS/prism/labels{/name}","releases_url":"https://api.github.com/repos/PrismJS/prism/releases{/id}","deployments_url":"https://api.github.com/repos/PrismJS/prism/deployments","created_at":"2012-07-10T19:47:14Z","updated_at":"2016-08-24T05:25:39Z","pushed_at":"2016-08-24T21:28:33Z","git_url":"git://github.com/PrismJS/prism.git","ssh_url":"git@github.com:PrismJS/prism.git","clone_url":"https://github.com/PrismJS/prism.git","svn_url":"https://github.com/PrismJS/prism","homepage":"http://prismjs.com","size":5733,"stargazers_count":3358,"watchers_count":3358,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":454,"mirror_url":null,"open_issues_count":93,"forks":454,"open_issues":93,"watchers":3358,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/1016"},"html":{"href":"https://github.com/PrismJS/prism/pull/1016"},"issue":{"href":"https://api.github.com/repos/PrismJS/prism/issues/1016"},"comments":{"href":"https://api.github.com/repos/PrismJS/prism/issues/1016/comments"},"review_comments":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/1016/comments"},"review_comment":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/1016/commits"},"statuses":{"href":"https://api.github.com/repos/PrismJS/prism/statuses/52b5b938cec14e2bd6c06312353721fcb6349f4a"}}}}
{"actor":{"display_login":"valtlai"}}