SILENT KILLERPanel

Current Path: > > lib > node_modules > npm > node_modules > is-regex >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib/node_modules/npm/node_modules/is-regex/

NameTypeSizeLast ModifiedActions
.jscs.json File 4140 bytes March 10 2021 14:36:37.
.npmignore File 97 bytes March 10 2021 14:36:37.
.travis.yml File 4770 bytes March 10 2021 14:36:37.
CHANGELOG.md File 1109 bytes March 10 2021 14:36:37.
LICENSE File 1081 bytes March 10 2021 14:36:37.
Makefile File 3834 bytes March 10 2021 14:36:37.
README.md File 1624 bytes March 10 2021 14:36:37.
index.js File 918 bytes March 10 2021 14:36:37.
package.json File 1829 bytes March 10 2021 14:36:37.
test.js File 1801 bytes March 10 2021 14:36:37.

Reading File: //lib/node_modules/npm/node_modules/is-regex//index.js

'use strict';

var has = require('has');
var regexExec = RegExp.prototype.exec;
var gOPD = Object.getOwnPropertyDescriptor;

var tryRegexExecCall = function tryRegexExec(value) {
	try {
		var lastIndex = value.lastIndex;
		value.lastIndex = 0;

		regexExec.call(value);
		return true;
	} catch (e) {
		return false;
	} finally {
		value.lastIndex = lastIndex;
	}
};
var toStr = Object.prototype.toString;
var regexClass = '[object RegExp]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';

module.exports = function isRegex(value) {
	if (!value || typeof value !== 'object') {
		return false;
	}
	if (!hasToStringTag) {
		return toStr.call(value) === regexClass;
	}

	var descriptor = gOPD(value, 'lastIndex');
	var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
	if (!hasLastIndexDataProperty) {
		return false;
	}

	return tryRegexExecCall(value);
};

SILENT KILLER Tool