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 |
|
---|
3 | module.exports = hpkp
|
---|
4 | hpkp.displayName = 'hpkp'
|
---|
5 | hpkp.aliases = []
|
---|
6 | function 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.