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
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | module.exports = hsts
|
---|
| 4 | hsts.displayName = 'hsts'
|
---|
| 5 | hsts.aliases = []
|
---|
| 6 | function 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.