stale/node_modules/is-regex
PJ Quirk 0649bd8119
Add support to v1 to connect to GHES (#69)
* Bumping actions/github to 2.2.0 for GHES

* Husky commit correct node modules
2020-05-15 15:25:57 -04:00
..
.eslintrc Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
.jscs.json Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
.npmignore Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
.travis.yml Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
CHANGELOG.md Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
LICENSE Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
Makefile Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
README.md Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
index.js Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
package.json Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
test.js Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00

README.md

#is-regex Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

Is this value a JS regex? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Example

var isRegex = require('is-regex');
var assert = require('assert');

assert.notOk(isRegex(undefined));
assert.notOk(isRegex(null));
assert.notOk(isRegex(false));
assert.notOk(isRegex(true));
assert.notOk(isRegex(42));
assert.notOk(isRegex('foo'));
assert.notOk(isRegex(function () {}));
assert.notOk(isRegex([]));
assert.notOk(isRegex({}));

assert.ok(isRegex(/a/g));
assert.ok(isRegex(new RegExp('a', 'g')));

Tests

Simply clone the repo, npm install, and run npm test