Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.135.246.88
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
is-regex /
Delete
Unzip
Name
Size
Permission
Date
Action
.eslintrc
78
B
-rw-r--r--
2017-02-18 08:02
.jscs.json
4.04
KB
-rw-r--r--
2017-02-18 07:47
.npmignore
97
B
-rw-r--r--
2017-01-10 22:24
.travis.yml
4.66
KB
-rw-r--r--
2017-02-18 08:02
CHANGELOG.md
1.08
KB
-rw-r--r--
2017-02-18 08:12
LICENSE
1.06
KB
-rw-r--r--
2017-01-10 22:24
Makefile
3.74
KB
-rw-r--r--
2017-01-10 22:24
README.md
1.59
KB
-rw-r--r--
2017-01-10 22:24
index.js
918
B
-rw-r--r--
2017-02-18 08:02
package.json
2.45
KB
-rw-r--r--
2021-02-04 21:24
test.js
1.76
KB
-rw-r--r--
2017-02-18 08:02
Save
Rename
'use strict'; var test = require('tape'); var isRegex = require('./'); var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; test('not regexes', function (t) { t.notOk(isRegex(), 'undefined is not regex'); t.notOk(isRegex(null), 'null is not regex'); t.notOk(isRegex(false), 'false is not regex'); t.notOk(isRegex(true), 'true is not regex'); t.notOk(isRegex(42), 'number is not regex'); t.notOk(isRegex('foo'), 'string is not regex'); t.notOk(isRegex([]), 'array is not regex'); t.notOk(isRegex({}), 'object is not regex'); t.notOk(isRegex(function () {}), 'function is not regex'); t.end(); }); test('@@toStringTag', { skip: !hasToStringTag }, function (t) { var regex = /a/g; var fakeRegex = { toString: function () { return String(regex); }, valueOf: function () { return regex; } }; fakeRegex[Symbol.toStringTag] = 'RegExp'; t.notOk(isRegex(fakeRegex), 'fake RegExp with @@toStringTag "RegExp" is not regex'); t.end(); }); test('regexes', function (t) { t.ok(isRegex(/a/g), 'regex literal is regex'); t.ok(isRegex(new RegExp('a', 'g')), 'regex object is regex'); t.end(); }); test('does not mutate regexes', function (t) { t.test('lastIndex is a marker object', function (st) { var regex = /a/; var marker = {}; regex.lastIndex = marker; st.equal(regex.lastIndex, marker, 'lastIndex is the marker object'); st.ok(isRegex(regex), 'is regex'); st.equal(regex.lastIndex, marker, 'lastIndex is the marker object after isRegex'); st.end(); }); t.test('lastIndex is nonzero', function (st) { var regex = /a/; regex.lastIndex = 3; st.equal(regex.lastIndex, 3, 'lastIndex is 3'); st.ok(isRegex(regex), 'is regex'); st.equal(regex.lastIndex, 3, 'lastIndex is 3 after isRegex'); st.end(); }); t.end(); });