Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-regexy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-regexy - npm Package Compare versions

Comparing version 1.0.1 to 1.0.3

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# 1.0.3
## Misc
- update README [37f45441](https://github.com/lekterable/is-regexy/commit/37f45441b309e174430e6559d1f06a19ce81c034)
- bump jest from 25.5.4 to 26.0.1 (#6) [9d703175](https://github.com/lekterable/is-regexy/commit/9d70317522e539fd905423533b4e9d5eaa4c4aa4)
# 1.0.1

@@ -2,0 +9,0 @@

4

package.json
{
"name": "is-regexy",
"version": "1.0.1",
"version": "1.0.3",
"description": "Check if a string could be a regular expression",

@@ -33,4 +33,4 @@ "main": "index.js",

"devDependencies": {
"jest": "^25.3.0"
"jest": "^26.0.1"
}
}

@@ -1,2 +0,2 @@

# is-regexy ![npm](https://img.shields.io/npm/v/is-regexy) ![Travis (.org)](https://img.shields.io/travis/lekterable/is-regexy) [![codecov](https://codecov.io/gh/lekterable/is-regexy/branch/master/graph/badge.svg)](https://codecov.io/gh/lekterable/is-regexy) [![management: perfekt👌](https://img.shields.io/badge/management-perfekt👌-red.svg?style=flat-square)](https://github.com/lekterable/perfekt)
# is-regexy [![npm](https://img.shields.io/npm/v/is-regexy)](https://www.npmjs.com/package/is-regexy) [![build](https://img.shields.io/travis/lekterable/is-regexy)](https://travis-ci.com/github/lekterable/is-regexy) [![codecov](https://codecov.io/gh/lekterable/is-regexy/branch/master/graph/badge.svg)](https://codecov.io/gh/lekterable/is-regexy) [![management: perfekt👌](https://img.shields.io/badge/management-perfekt👌-red.svg?style=flat-square)](https://github.com/lekterable/perfekt)

@@ -10,12 +10,12 @@ A very simple library for checking if given value (Regex object OR string) could be a valid regular expression.

```js
const isRegex = require('is-regex') // CommonJS
const isRegexy = require('is-regexy') // CommonJS
// OR
import isRegex from 'is-regex' // ES modules
import isRegexy from 'is-regexy' // ES modules
isRegex('foo') // false
isRegexy('foo') // false
isRegex(/foo/) // true
isRegex(new RegExp('foo')) // true
isRegex('/foo/') // true
isRegex('/foo/ig') // true
isRegexy(/foo/) // true
isRegexy(new RegExp('foo')) // true
isRegexy('/foo/') // true
isRegexy('/foo/ig') // true
isRegexy('/(epic|feat|fix|chore)/DEV-\\d{4}/i') //true

@@ -22,0 +22,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc