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

named-regexp-groups

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

named-regexp-groups - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

9

lib/generate.js

@@ -25,4 +25,11 @@ 'use strict';

if (str instanceof RegExp) {
flags = flags || str.flags || '';
/* istanbul ignore if */
if (!flags) {
// No RegExp.flags for node < v6.
if (str.ignoreCase) flags += 'i';
if (str.multiline) flags += 'm';
if (str.global) flags += 'g';
}
str = str.source;
flags = str.flags;
}

@@ -29,0 +36,0 @@

2

package.json
{
"name": "named-regexp-groups",
"version": "1.0.1",
"version": "1.0.2",
"description": "Regular expressions with named capture groups and named back-references",

@@ -5,0 +5,0 @@ "main": "lib",

@@ -23,4 +23,10 @@ /*!

if (str instanceof RegExp) {
flags = flags || str.flags || ''
/* istanbul ignore if */
if (!flags) { // No RegExp.flags for node < v6.
if (str.ignoreCase) flags += 'i'
if (str.multiline) flags += 'm'
if (str.global) flags += 'g'
}
str = str.source
flags = str.flags
}

@@ -27,0 +33,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