Socket
Socket
Sign inDemoInstall

regex-not

Package Overview
Dependencies
7
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

2

index.js

@@ -61,3 +61,3 @@ 'use strict';

var res = open + str + close;
if (opts.safe !== false && safe(res) === false) {
if (opts.safe === true && safe(res) === false) {
throw new Error('potentially unsafe regular expression: ' + res);

@@ -64,0 +64,0 @@ }

{
"name": "regex-not",
"description": "Create a javascript regular expression for matching everything except for the given string.",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/jonschlinkert/regex-not",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc