Merge branch '3.1' into 5.2
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / js / 3rdParty / prism / components / prism-hsts.js
1 define(["prism/prism"], function () {
2 /**
3 * Original by Scott Helme.
4 *
5 * Reference: https://scotthelme.co.uk/hsts-cheat-sheet/
6 */
7
8 Prism.languages.hsts = {
9 'directive': {
10 pattern: /\b(?:max-age=|includeSubDomains|preload)/,
11 alias: 'keyword'
12 },
13 'safe': {
14 pattern: /\d{8,}/,
15 alias: 'selector'
16 },
17 'unsafe': {
18 pattern: /\d{1,7}/,
19 alias: 'function'
20 }
21 };
22
23 return Prism; })