regex-not
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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)", |
8459