nav tabs on admin dashboard
This commit is contained in:
+303
-319
@@ -1,345 +1,329 @@
|
||||
/*! https://mths.be/jsesc v1.3.0 by @mathias */
|
||||
;(function(root) {
|
||||
'use strict';
|
||||
|
||||
// Detect free variables `exports`
|
||||
var freeExports = typeof exports == 'object' && exports;
|
||||
const object = {};
|
||||
const hasOwnProperty = object.hasOwnProperty;
|
||||
const forOwn = (object, callback) => {
|
||||
for (const key in object) {
|
||||
if (hasOwnProperty.call(object, key)) {
|
||||
callback(key, object[key]);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Detect free variable `module`
|
||||
var freeModule = typeof module == 'object' && module &&
|
||||
module.exports == freeExports && module;
|
||||
const extend = (destination, source) => {
|
||||
if (!source) {
|
||||
return destination;
|
||||
}
|
||||
forOwn(source, (key, value) => {
|
||||
destination[key] = value;
|
||||
});
|
||||
return destination;
|
||||
};
|
||||
|
||||
// Detect free variable `global`, from Node.js or Browserified code,
|
||||
// and use it as `root`
|
||||
var freeGlobal = typeof global == 'object' && global;
|
||||
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
|
||||
root = freeGlobal;
|
||||
const forEach = (array, callback) => {
|
||||
const length = array.length;
|
||||
let index = -1;
|
||||
while (++index < length) {
|
||||
callback(array[index]);
|
||||
}
|
||||
};
|
||||
|
||||
const toString = object.toString;
|
||||
const isArray = Array.isArray;
|
||||
const isBuffer = Buffer.isBuffer;
|
||||
const isObject = (value) => {
|
||||
// This is a very simple check, but it’s good enough for what we need.
|
||||
return toString.call(value) == '[object Object]';
|
||||
};
|
||||
const isString = (value) => {
|
||||
return typeof value == 'string' ||
|
||||
toString.call(value) == '[object String]';
|
||||
};
|
||||
const isNumber = (value) => {
|
||||
return typeof value == 'number' ||
|
||||
toString.call(value) == '[object Number]';
|
||||
};
|
||||
const isFunction = (value) => {
|
||||
return typeof value == 'function';
|
||||
};
|
||||
const isMap = (value) => {
|
||||
return toString.call(value) == '[object Map]';
|
||||
};
|
||||
const isSet = (value) => {
|
||||
return toString.call(value) == '[object Set]';
|
||||
};
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
// https://mathiasbynens.be/notes/javascript-escapes#single
|
||||
const singleEscapes = {
|
||||
'"': '\\"',
|
||||
'\'': '\\\'',
|
||||
'\\': '\\\\',
|
||||
'\b': '\\b',
|
||||
'\f': '\\f',
|
||||
'\n': '\\n',
|
||||
'\r': '\\r',
|
||||
'\t': '\\t'
|
||||
// `\v` is omitted intentionally, because in IE < 9, '\v' == 'v'.
|
||||
// '\v': '\\x0B'
|
||||
};
|
||||
const regexSingleEscape = /["'\\\b\f\n\r\t]/;
|
||||
|
||||
const regexDigit = /[0-9]/;
|
||||
const regexWhitelist = /[ !#-&\(-\[\]-_a-~]/;
|
||||
|
||||
const jsesc = (argument, options) => {
|
||||
const increaseIndentation = () => {
|
||||
oldIndent = indent;
|
||||
++options.indentLevel;
|
||||
indent = options.indent.repeat(options.indentLevel)
|
||||
};
|
||||
// Handle options
|
||||
const defaults = {
|
||||
'escapeEverything': false,
|
||||
'minimal': false,
|
||||
'isScriptContext': false,
|
||||
'quotes': 'single',
|
||||
'wrap': false,
|
||||
'es6': false,
|
||||
'json': false,
|
||||
'compact': true,
|
||||
'lowercaseHex': false,
|
||||
'numbers': 'decimal',
|
||||
'indent': '\t',
|
||||
'indentLevel': 0,
|
||||
'__inline1__': false,
|
||||
'__inline2__': false
|
||||
};
|
||||
const json = options && options.json;
|
||||
if (json) {
|
||||
defaults.quotes = 'double';
|
||||
defaults.wrap = true;
|
||||
}
|
||||
options = extend(defaults, options);
|
||||
if (
|
||||
options.quotes != 'single' &&
|
||||
options.quotes != 'double' &&
|
||||
options.quotes != 'backtick'
|
||||
) {
|
||||
options.quotes = 'single';
|
||||
}
|
||||
const quote = options.quotes == 'double' ?
|
||||
'"' :
|
||||
(options.quotes == 'backtick' ?
|
||||
'`' :
|
||||
'\''
|
||||
);
|
||||
const compact = options.compact;
|
||||
const lowercaseHex = options.lowercaseHex;
|
||||
let indent = options.indent.repeat(options.indentLevel);
|
||||
let oldIndent = '';
|
||||
const inline1 = options.__inline1__;
|
||||
const inline2 = options.__inline2__;
|
||||
const newLine = compact ? '' : '\n';
|
||||
let result;
|
||||
let isEmpty = true;
|
||||
const useBinNumbers = options.numbers == 'binary';
|
||||
const useOctNumbers = options.numbers == 'octal';
|
||||
const useDecNumbers = options.numbers == 'decimal';
|
||||
const useHexNumbers = options.numbers == 'hexadecimal';
|
||||
|
||||
if (json && argument && isFunction(argument.toJSON)) {
|
||||
argument = argument.toJSON();
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
var object = {};
|
||||
var hasOwnProperty = object.hasOwnProperty;
|
||||
var forOwn = function(object, callback) {
|
||||
var key;
|
||||
for (key in object) {
|
||||
if (hasOwnProperty.call(object, key)) {
|
||||
callback(key, object[key]);
|
||||
if (!isString(argument)) {
|
||||
if (isMap(argument)) {
|
||||
if (argument.size == 0) {
|
||||
return 'new Map()';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
var extend = function(destination, source) {
|
||||
if (!source) {
|
||||
return destination;
|
||||
}
|
||||
forOwn(source, function(key, value) {
|
||||
destination[key] = value;
|
||||
});
|
||||
return destination;
|
||||
};
|
||||
|
||||
var forEach = function(array, callback) {
|
||||
var length = array.length;
|
||||
var index = -1;
|
||||
while (++index < length) {
|
||||
callback(array[index]);
|
||||
}
|
||||
};
|
||||
|
||||
var toString = object.toString;
|
||||
var isArray = function(value) {
|
||||
return toString.call(value) == '[object Array]';
|
||||
};
|
||||
var isObject = function(value) {
|
||||
// This is a very simple check, but it’s good enough for what we need.
|
||||
return toString.call(value) == '[object Object]';
|
||||
};
|
||||
var isString = function(value) {
|
||||
return typeof value == 'string' ||
|
||||
toString.call(value) == '[object String]';
|
||||
};
|
||||
var isNumber = function(value) {
|
||||
return typeof value == 'number' ||
|
||||
toString.call(value) == '[object Number]';
|
||||
};
|
||||
var isFunction = function(value) {
|
||||
// In a perfect world, the `typeof` check would be sufficient. However,
|
||||
// in Chrome 1–12, `typeof /x/ == 'object'`, and in IE 6–8
|
||||
// `typeof alert == 'object'` and similar for other host objects.
|
||||
return typeof value == 'function' ||
|
||||
toString.call(value) == '[object Function]';
|
||||
};
|
||||
var isMap = function(value) {
|
||||
return toString.call(value) == '[object Map]';
|
||||
};
|
||||
var isSet = function(value) {
|
||||
return toString.call(value) == '[object Set]';
|
||||
};
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
// https://mathiasbynens.be/notes/javascript-escapes#single
|
||||
var singleEscapes = {
|
||||
'"': '\\"',
|
||||
'\'': '\\\'',
|
||||
'\\': '\\\\',
|
||||
'\b': '\\b',
|
||||
'\f': '\\f',
|
||||
'\n': '\\n',
|
||||
'\r': '\\r',
|
||||
'\t': '\\t'
|
||||
// `\v` is omitted intentionally, because in IE < 9, '\v' == 'v'.
|
||||
// '\v': '\\x0B'
|
||||
};
|
||||
var regexSingleEscape = /["'\\\b\f\n\r\t]/;
|
||||
|
||||
var regexDigit = /[0-9]/;
|
||||
var regexWhitelist = /[ !#-&\(-\[\]-~]/;
|
||||
|
||||
var jsesc = function(argument, options) {
|
||||
// Handle options
|
||||
var defaults = {
|
||||
'escapeEverything': false,
|
||||
'escapeEtago': false,
|
||||
'quotes': 'single',
|
||||
'wrap': false,
|
||||
'es6': false,
|
||||
'json': false,
|
||||
'compact': true,
|
||||
'lowercaseHex': false,
|
||||
'numbers': 'decimal',
|
||||
'indent': '\t',
|
||||
'__indent__': '',
|
||||
'__inline1__': false,
|
||||
'__inline2__': false
|
||||
};
|
||||
var json = options && options.json;
|
||||
if (json) {
|
||||
defaults.quotes = 'double';
|
||||
defaults.wrap = true;
|
||||
}
|
||||
options = extend(defaults, options);
|
||||
if (options.quotes != 'single' && options.quotes != 'double') {
|
||||
options.quotes = 'single';
|
||||
}
|
||||
var quote = options.quotes == 'double' ? '"' : '\'';
|
||||
var compact = options.compact;
|
||||
var indent = options.indent;
|
||||
var lowercaseHex = options.lowercaseHex;
|
||||
var oldIndent = '';
|
||||
var inline1 = options.__inline1__;
|
||||
var inline2 = options.__inline2__;
|
||||
var newLine = compact ? '' : '\n';
|
||||
var result;
|
||||
var isEmpty = true;
|
||||
var useBinNumbers = options.numbers == 'binary';
|
||||
var useOctNumbers = options.numbers == 'octal';
|
||||
var useDecNumbers = options.numbers == 'decimal';
|
||||
var useHexNumbers = options.numbers == 'hexadecimal';
|
||||
|
||||
if (json && argument && isFunction(argument.toJSON)) {
|
||||
argument = argument.toJSON();
|
||||
}
|
||||
|
||||
if (!isString(argument)) {
|
||||
if (isMap(argument)) {
|
||||
if (argument.size == 0) {
|
||||
return 'new Map()';
|
||||
}
|
||||
if (!compact) {
|
||||
options.__inline1__ = true;
|
||||
}
|
||||
return 'new Map(' + jsesc(Array.from(argument), options) + ')';
|
||||
if (!compact) {
|
||||
options.__inline1__ = true;
|
||||
options.__inline2__ = false;
|
||||
}
|
||||
if (isSet(argument)) {
|
||||
if (argument.size == 0) {
|
||||
return 'new Set()';
|
||||
}
|
||||
return 'new Set(' + jsesc(Array.from(argument), options) + ')';
|
||||
return 'new Map(' + jsesc(Array.from(argument), options) + ')';
|
||||
}
|
||||
if (isSet(argument)) {
|
||||
if (argument.size == 0) {
|
||||
return 'new Set()';
|
||||
}
|
||||
if (isArray(argument)) {
|
||||
result = [];
|
||||
options.wrap = true;
|
||||
if (inline1) {
|
||||
options.__inline1__ = false;
|
||||
options.__inline2__ = true;
|
||||
} else {
|
||||
oldIndent = options.__indent__;
|
||||
indent += oldIndent;
|
||||
options.__indent__ = indent;
|
||||
}
|
||||
forEach(argument, function(value) {
|
||||
isEmpty = false;
|
||||
if (inline2) {
|
||||
options.__inline2__ = false;
|
||||
}
|
||||
result.push(
|
||||
(compact || inline2 ? '' : indent) +
|
||||
jsesc(value, options)
|
||||
);
|
||||
});
|
||||
if (isEmpty) {
|
||||
return '[]';
|
||||
}
|
||||
return 'new Set(' + jsesc(Array.from(argument), options) + ')';
|
||||
}
|
||||
if (isBuffer(argument)) {
|
||||
if (argument.length == 0) {
|
||||
return 'Buffer.from([])';
|
||||
}
|
||||
return 'Buffer.from(' + jsesc(Array.from(argument), options) + ')';
|
||||
}
|
||||
if (isArray(argument)) {
|
||||
result = [];
|
||||
options.wrap = true;
|
||||
if (inline1) {
|
||||
options.__inline1__ = false;
|
||||
options.__inline2__ = true;
|
||||
}
|
||||
if (!inline2) {
|
||||
increaseIndentation();
|
||||
}
|
||||
forEach(argument, (value) => {
|
||||
isEmpty = false;
|
||||
if (inline2) {
|
||||
return '[' + result.join(', ') + ']';
|
||||
}
|
||||
return '[' + newLine + result.join(',' + newLine) + newLine +
|
||||
(compact ? '' : oldIndent) + ']';
|
||||
} else if (isNumber(argument)) {
|
||||
if (json) {
|
||||
// Some number values (e.g. `Infinity`) cannot be represented in JSON.
|
||||
return JSON.stringify(argument);
|
||||
}
|
||||
if (useDecNumbers) {
|
||||
return String(argument);
|
||||
}
|
||||
if (useHexNumbers) {
|
||||
var tmp = argument.toString(16);
|
||||
if (!lowercaseHex) {
|
||||
tmp = tmp.toUpperCase();
|
||||
}
|
||||
return '0x' + tmp;
|
||||
}
|
||||
if (useBinNumbers) {
|
||||
return '0b' + argument.toString(2);
|
||||
}
|
||||
if (useOctNumbers) {
|
||||
return '0o' + argument.toString(8);
|
||||
}
|
||||
} else if (!isObject(argument)) {
|
||||
if (json) {
|
||||
// For some values (e.g. `undefined`, `function` objects),
|
||||
// `JSON.stringify(value)` returns `undefined` (which isn’t valid
|
||||
// JSON) instead of `'null'`.
|
||||
return JSON.stringify(argument) || 'null';
|
||||
options.__inline2__ = false;
|
||||
}
|
||||
result.push(
|
||||
(compact || inline2 ? '' : indent) +
|
||||
jsesc(value, options)
|
||||
);
|
||||
});
|
||||
if (isEmpty) {
|
||||
return '[]';
|
||||
}
|
||||
if (inline2) {
|
||||
return '[' + result.join(', ') + ']';
|
||||
}
|
||||
return '[' + newLine + result.join(',' + newLine) + newLine +
|
||||
(compact ? '' : oldIndent) + ']';
|
||||
} else if (isNumber(argument)) {
|
||||
if (json) {
|
||||
// Some number values (e.g. `Infinity`) cannot be represented in JSON.
|
||||
return JSON.stringify(argument);
|
||||
}
|
||||
if (useDecNumbers) {
|
||||
return String(argument);
|
||||
} else { // it’s an object
|
||||
result = [];
|
||||
options.wrap = true;
|
||||
oldIndent = options.__indent__;
|
||||
indent += oldIndent;
|
||||
options.__indent__ = indent;
|
||||
forOwn(argument, function(key, value) {
|
||||
isEmpty = false;
|
||||
result.push(
|
||||
(compact ? '' : indent) +
|
||||
jsesc(key, options) + ':' +
|
||||
(compact ? '' : ' ') +
|
||||
jsesc(value, options)
|
||||
);
|
||||
});
|
||||
if (isEmpty) {
|
||||
return '{}';
|
||||
}
|
||||
if (useHexNumbers) {
|
||||
let hexadecimal = argument.toString(16);
|
||||
if (!lowercaseHex) {
|
||||
hexadecimal = hexadecimal.toUpperCase();
|
||||
}
|
||||
return '0x' + hexadecimal;
|
||||
}
|
||||
if (useBinNumbers) {
|
||||
return '0b' + argument.toString(2);
|
||||
}
|
||||
if (useOctNumbers) {
|
||||
return '0o' + argument.toString(8);
|
||||
}
|
||||
} else if (!isObject(argument)) {
|
||||
if (json) {
|
||||
// For some values (e.g. `undefined`, `function` objects),
|
||||
// `JSON.stringify(value)` returns `undefined` (which isn’t valid
|
||||
// JSON) instead of `'null'`.
|
||||
return JSON.stringify(argument) || 'null';
|
||||
}
|
||||
return String(argument);
|
||||
} else { // it’s an object
|
||||
result = [];
|
||||
options.wrap = true;
|
||||
increaseIndentation();
|
||||
forOwn(argument, (key, value) => {
|
||||
isEmpty = false;
|
||||
result.push(
|
||||
(compact ? '' : indent) +
|
||||
jsesc(key, options) + ':' +
|
||||
(compact ? '' : ' ') +
|
||||
jsesc(value, options)
|
||||
);
|
||||
});
|
||||
if (isEmpty) {
|
||||
return '{}';
|
||||
}
|
||||
return '{' + newLine + result.join(',' + newLine) + newLine +
|
||||
(compact ? '' : oldIndent) + '}';
|
||||
}
|
||||
}
|
||||
|
||||
const string = argument;
|
||||
// Loop over each code unit in the string and escape it
|
||||
let index = -1;
|
||||
const length = string.length;
|
||||
result = '';
|
||||
while (++index < length) {
|
||||
const character = string.charAt(index);
|
||||
if (options.es6) {
|
||||
const first = string.charCodeAt(index);
|
||||
if ( // check if it’s the start of a surrogate pair
|
||||
first >= 0xD800 && first <= 0xDBFF && // high surrogate
|
||||
length > index + 1 // there is a next code unit
|
||||
) {
|
||||
const second = string.charCodeAt(index + 1);
|
||||
if (second >= 0xDC00 && second <= 0xDFFF) { // low surrogate
|
||||
// https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
|
||||
const codePoint = (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
|
||||
let hexadecimal = codePoint.toString(16);
|
||||
if (!lowercaseHex) {
|
||||
hexadecimal = hexadecimal.toUpperCase();
|
||||
}
|
||||
result += '\\u{' + hexadecimal + '}';
|
||||
++index;
|
||||
continue;
|
||||
}
|
||||
return '{' + newLine + result.join(',' + newLine) + newLine +
|
||||
(compact ? '' : oldIndent) + '}';
|
||||
}
|
||||
}
|
||||
|
||||
var string = argument;
|
||||
// Loop over each code unit in the string and escape it
|
||||
var index = -1;
|
||||
var length = string.length;
|
||||
var first;
|
||||
var second;
|
||||
var codePoint;
|
||||
result = '';
|
||||
while (++index < length) {
|
||||
var character = string.charAt(index);
|
||||
if (options.es6) {
|
||||
first = string.charCodeAt(index);
|
||||
if ( // check if it’s the start of a surrogate pair
|
||||
first >= 0xD800 && first <= 0xDBFF && // high surrogate
|
||||
length > index + 1 // there is a next code unit
|
||||
) {
|
||||
second = string.charCodeAt(index + 1);
|
||||
if (second >= 0xDC00 && second <= 0xDFFF) { // low surrogate
|
||||
// https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
|
||||
codePoint = (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
|
||||
var hexadecimal = codePoint.toString(16);
|
||||
if (!lowercaseHex) {
|
||||
hexadecimal = hexadecimal.toUpperCase();
|
||||
}
|
||||
result += '\\u{' + hexadecimal + '}';
|
||||
index++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!options.escapeEverything) {
|
||||
if (regexWhitelist.test(character)) {
|
||||
// It’s a printable ASCII character that is not `"`, `'` or `\`,
|
||||
// so don’t escape it.
|
||||
result += character;
|
||||
continue;
|
||||
}
|
||||
if (character == '"') {
|
||||
result += quote == character ? '\\"' : character;
|
||||
continue;
|
||||
}
|
||||
if (character == '\'') {
|
||||
result += quote == character ? '\\\'' : character;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (
|
||||
character == '\0' &&
|
||||
!json &&
|
||||
!regexDigit.test(string.charAt(index + 1))
|
||||
) {
|
||||
result += '\\0';
|
||||
if (!options.escapeEverything) {
|
||||
if (regexWhitelist.test(character)) {
|
||||
// It’s a printable ASCII character that is not `"`, `'` or `\`,
|
||||
// so don’t escape it.
|
||||
result += character;
|
||||
continue;
|
||||
}
|
||||
if (regexSingleEscape.test(character)) {
|
||||
// no need for a `hasOwnProperty` check here
|
||||
result += singleEscapes[character];
|
||||
if (character == '"') {
|
||||
result += quote == character ? '\\"' : character;
|
||||
continue;
|
||||
}
|
||||
var charCode = character.charCodeAt(0);
|
||||
var hexadecimal = charCode.toString(16);
|
||||
if (!lowercaseHex) {
|
||||
hexadecimal = hexadecimal.toUpperCase();
|
||||
if (character == '`') {
|
||||
result += quote == character ? '\\`' : character;
|
||||
continue;
|
||||
}
|
||||
var longhand = hexadecimal.length > 2 || json;
|
||||
var escaped = '\\' + (longhand ? 'u' : 'x') +
|
||||
('0000' + hexadecimal).slice(longhand ? -4 : -2);
|
||||
result += escaped;
|
||||
if (character == '\'') {
|
||||
result += quote == character ? '\\\'' : character;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (
|
||||
character == '\0' &&
|
||||
!json &&
|
||||
!regexDigit.test(string.charAt(index + 1))
|
||||
) {
|
||||
result += '\\0';
|
||||
continue;
|
||||
}
|
||||
if (options.wrap) {
|
||||
result = quote + result + quote;
|
||||
if (regexSingleEscape.test(character)) {
|
||||
// no need for a `hasOwnProperty` check here
|
||||
result += singleEscapes[character];
|
||||
continue;
|
||||
}
|
||||
if (options.escapeEtago) {
|
||||
// https://mathiasbynens.be/notes/etago
|
||||
return result.replace(/<\/(script|style)/gi, '<\\/$1');
|
||||
const charCode = character.charCodeAt(0);
|
||||
if (options.minimal && charCode != 0x2028 && charCode != 0x2029) {
|
||||
result += character;
|
||||
continue;
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
jsesc.version = '1.3.0';
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
// Some AMD build optimizers, like r.js, check for specific condition patterns
|
||||
// like the following:
|
||||
if (
|
||||
typeof define == 'function' &&
|
||||
typeof define.amd == 'object' &&
|
||||
define.amd
|
||||
) {
|
||||
define(function() {
|
||||
return jsesc;
|
||||
});
|
||||
} else if (freeExports && !freeExports.nodeType) {
|
||||
if (freeModule) { // in Node.js or RingoJS v0.8.0+
|
||||
freeModule.exports = jsesc;
|
||||
} else { // in Narwhal or RingoJS v0.7.0-
|
||||
freeExports.jsesc = jsesc;
|
||||
let hexadecimal = charCode.toString(16);
|
||||
if (!lowercaseHex) {
|
||||
hexadecimal = hexadecimal.toUpperCase();
|
||||
}
|
||||
} else { // in Rhino or a web browser
|
||||
root.jsesc = jsesc;
|
||||
const longhand = hexadecimal.length > 2 || json;
|
||||
const escaped = '\\' + (longhand ? 'u' : 'x') +
|
||||
('0000' + hexadecimal).slice(longhand ? -4 : -2);
|
||||
result += escaped;
|
||||
continue;
|
||||
}
|
||||
if (options.wrap) {
|
||||
result = quote + result + quote;
|
||||
}
|
||||
if (quote == '`') {
|
||||
result = result.replace(/\$\{/g, '\\\$\{');
|
||||
}
|
||||
if (options.isScriptContext) {
|
||||
// https://mathiasbynens.be/notes/etago
|
||||
return result
|
||||
.replace(/<\/(script|style)/gi, '<\\/$1')
|
||||
.replace(/<!--/g, json ? '\\u003C!--' : '\\x3C!--');
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
}(this));
|
||||
jsesc.version = '2.5.2';
|
||||
|
||||
module.exports = jsesc;
|
||||
|
||||
Reference in New Issue
Block a user