mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-14 18:27:10 +01:00
1 line
3.0 KiB
Plaintext
1 line
3.0 KiB
Plaintext
{"version":3,"file":"7799.690560cf65f3d985dde5.js","mappings":"sFA2FAA,EAAOC,QAjFP,SAAmBC,GACjB,MAAMC,EAAQD,EAAKC,MAEbC,EAAa,CACjB,MACA,OACA,OACA,MACA,SACA,UACA,UACA,QACA,SAEF,MAAO,CACLC,KAAM,oBACNC,SAAU,CAER,CACEC,UAAW,SACXC,MAAO,mDACPC,UAAW,GAGb,CACEF,UAAW,SACXC,MAAO,UACPC,UAAW,GAGb,CACEF,UAAW,SACXC,MAAOL,EAAMO,OAAO,IAAKP,EAAMQ,UAAUP,IACzCQ,IAAK,IACLC,SAAUT,EACVU,QAAS,KACTL,UAAW,EACXH,SAAU,CACR,CACEE,MAAO,kBACPC,UAAW,KAKjB,CACEF,UAAW,SAIXC,MAAO,oBACPM,QAAS,KACTL,UAAW,GAEb,CACEF,UAAW,SACXC,MAAO,KACPI,IAAK,KACLE,QAAS,KACTL,UAAW,GAGb,CACEF,UAAW,SACXC,MAAO,sBACPI,IAAK,IACLE,QAAS,KACTL,UAAW,GAGb,CACEF,UAAW,SACXC,MAAO,IACPI,IAAK,IACLE,QAAS,KACTL,UAAW","sources":["webpack://telegram-t/./node_modules/highlight.js/lib/languages/accesslog.js"],"sourcesContent":["/*\n Language: Apache Access Log\n Author: Oleg Efimov <efimovov@gmail.com>\n Description: Apache/Nginx Access Logs\n Website: https://httpd.apache.org/docs/2.4/logs.html#accesslog\n Category: web, logs\n Audit: 2020\n */\n\n/** @type LanguageFn */\nfunction accesslog(hljs) {\n const regex = hljs.regex;\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods\n const HTTP_VERBS = [\n \"GET\",\n \"POST\",\n \"HEAD\",\n \"PUT\",\n \"DELETE\",\n \"CONNECT\",\n \"OPTIONS\",\n \"PATCH\",\n \"TRACE\"\n ];\n return {\n name: 'Apache Access Log',\n contains: [\n // IP\n {\n className: 'number',\n begin: /^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b/,\n relevance: 5\n },\n // Other numbers\n {\n className: 'number',\n begin: /\\b\\d+\\b/,\n relevance: 0\n },\n // Requests\n {\n className: 'string',\n begin: regex.concat(/\"/, regex.either(...HTTP_VERBS)),\n end: /\"/,\n keywords: HTTP_VERBS,\n illegal: /\\n/,\n relevance: 5,\n contains: [\n {\n begin: /HTTP\\/[12]\\.\\d'/,\n relevance: 5\n }\n ]\n },\n // Dates\n {\n className: 'string',\n // dates must have a certain length, this prevents matching\n // simple array accesses a[123] and [] and other common patterns\n // found in other languages\n begin: /\\[\\d[^\\]\\n]{8,}\\]/,\n illegal: /\\n/,\n relevance: 1\n },\n {\n className: 'string',\n begin: /\\[/,\n end: /\\]/,\n illegal: /\\n/,\n relevance: 0\n },\n // User agent / relevance boost\n {\n className: 'string',\n begin: /\"Mozilla\\/\\d\\.\\d \\(/,\n end: /\"/,\n illegal: /\\n/,\n relevance: 3\n },\n // Strings\n {\n className: 'string',\n begin: /\"/,\n end: /\"/,\n illegal: /\\n/,\n relevance: 0\n }\n ]\n };\n}\n\nmodule.exports = accesslog;\n"],"names":["module","exports","hljs","regex","HTTP_VERBS","name","contains","className","begin","relevance","concat","either","end","keywords","illegal"],"sourceRoot":""} |