source: node_modules/refractor/lang/hsts.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 401 bytes
Line 
1'use strict'
2
3module.exports = hsts
4hsts.displayName = 'hsts'
5hsts.aliases = []
6function hsts(Prism) {
7 /**
8 * Original by Scott Helme.
9 *
10 * Reference: https://scotthelme.co.uk/hsts-cheat-sheet/
11 */
12 Prism.languages.hsts = {
13 directive: {
14 pattern: /\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,
15 alias: 'property'
16 },
17 operator: /=/,
18 punctuation: /;/
19 }
20}
Note: See TracBrowser for help on using the repository browser.