summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-hpkp.js
blob: f1517648fa3564b0bdd2deb4bfdb5b882e734b1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * Original by Scott Helme.
 *
 * Reference: https://scotthelme.co.uk/hpkp-cheat-sheet/
 */

Prism.languages.hpkp = {
  directive: {
    pattern:
      /\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,
    alias: 'property',
  },
  operator: /=/,
  punctuation: /;/,
};