mirror of https://github.com/jkjoy/sunpeiwen.git
15 lines
270 B
JavaScript
15 lines
270 B
JavaScript
|
/**
|
||
|
* 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': /;/
|
||
|
};
|