%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/accesslog-ehLwtdXp.chunk.mjs.map |
{"version":3,"file":"accesslog-ehLwtdXp.chunk.mjs","sources":["../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":["accesslog","hljs","regex","HTTP_VERBS","accesslog_1"],"mappings":";4YAUA,SAASA,EAAUC,EAAM,CACvB,MAAMC,EAAQD,EAAK,MAEbE,EAAa,CACjB,MACA,OACA,OACA,MACA,SACA,UACA,UACA,QACA,OACJ,EACE,MAAO,CACL,KAAM,oBACN,SAAU,CAER,CACE,UAAW,SACX,MAAO,mDACP,UAAW,CACZ,EAED,CACE,UAAW,SACX,MAAO,UACP,UAAW,CACZ,EAED,CACE,UAAW,SACX,MAAOD,EAAM,OAAO,IAAKA,EAAM,OAAO,GAAGC,CAAU,CAAC,EACpD,IAAK,IACL,SAAUA,EACV,QAAS,KACT,UAAW,EACX,SAAU,CACR,CACE,MAAO,kBACP,UAAW,CACZ,CACF,CACF,EAED,CACE,UAAW,SAIX,MAAO,oBACP,QAAS,KACT,UAAW,CACZ,EACD,CACE,UAAW,SACX,MAAO,KACP,IAAK,KACL,QAAS,KACT,UAAW,CACZ,EAED,CACE,UAAW,SACX,MAAO,sBACP,IAAK,IACL,QAAS,KACT,UAAW,CACZ,EAED,CACE,UAAW,SACX,MAAO,IACP,IAAK,IACL,QAAS,KACT,UAAW,CACZ,CACF,CACL,CACA,CAEA,IAAAC,EAAiBJ","x_google_ignoreList":[0]}