components/prism-csp.js

Branch


Log

Author Commit Date CI Message
Michael Schmidt a943f2bb 2021-12-18T13:26:17 CSP: Improved tokenization (#3276)
Michael Schmidt 18a00828 2021-06-13T19:53:03 ESLint: Added regexp plugin (#2924)
Michael Schmidt 01cc18ed 2021-05-25T12:49:30 ESLint: Added eol-last rule (#2902)
edukisto f1541342 2020-12-01T23:10:29 CSP: Added missing directives and keywords (#2664) This adds missing CSP and UISecurity directives and keywords.
edukisto a7ccc16d 2020-11-30T21:14:26 CSP: Do not highlight directive names with adjacent hyphens (#2662) CSP tokens used `\b` to assert word boundaries but this is incorrect as CSP tokens may contain hyphens (`-`). This replaces the assertions will lookarounds that address the issue.
edukisto 537a9e80 2020-07-05T15:22:39 CSP: Fixed directives (#2461)
Golmote 5d658471 2018-03-08T22:21:24 Code style
Andreas Lind b08cae56 2018-01-31T22:38:01 Add support for highlighting CSP, HSTS, and HPKP (#1275) * Add CSP support. * Add HPKP support. * Add HSTS support. * Updates based on feedback. * Updates based on feedback. * Updates based on feedback. * Updates based on feedback. * Updates based on feedback. * Updates based on feedback. * Updates based on Feedback. * Fix parentheses. * List csp, hpkp, and hsts in components.js * Add missing base64 chars to 'nonce-...' and 'sha-...' source expressions * Add support for 'sha384-...' and 'sha512-...' source expressions * Add tests and examples for csp * Add tests and examples for hsts * Add tests and examples for hpkp * hpkp: Include the sha256 hash in the directive itself Prevent the numbers in the base64 string from being classified as "safe" or "unsafe". * Rebuild the minified csp and hpkp components * Rebuild the "Show Language" plugin as well * Fix copy/paste error in test description