source: node_modules/refractor/lang/hpkp.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 448 bytes
Line 
1'use strict'
2
3module.exports = hpkp
4hpkp.displayName = 'hpkp'
5hpkp.aliases = []
6function hpkp(Prism) {
7 /**
8 * Original by Scott Helme.
9 *
10 * Reference: https://scotthelme.co.uk/hpkp-cheat-sheet/
11 */
12 Prism.languages.hpkp = {
13 directive: {
14 pattern:
15 /\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,
16 alias: 'property'
17 },
18 operator: /=/,
19 punctuation: /;/
20 }
21}
Note: See TracBrowser for help on using the repository browser.