Files
2025-08-27 17:10:05 +08:00

21 lines
333 B
JavaScript

/**
* Original by Scott Helme.
*
* Reference: https://scotthelme.co.uk/hsts-cheat-sheet/
*/
Prism.languages.hsts = {
'directive': {
pattern: /\b(?:max-age=|includeSubDomains|preload)/,
alias: 'keyword'
},
'safe': {
pattern: /\d{8,}/,
alias: 'selector'
},
'unsafe': {
pattern: /\d{1,7}/,
alias: 'function'
}
};