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

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