New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0 to 1.0.1

12

lib/generate.js

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

case ')':
block = store.groups.pop() || '';
block = store.groups.pop();
name = store.names.pop();

@@ -71,9 +71,5 @@ /* istanbul ignore else */

}
s = '';
if (arr[i + 1] === ')') {
if (name[2]) {
s = name[2];
} else {
s = '[^]+';
}
s = name[2] || '';
if (arr[i + 1] === ')' && !name[2]) {
s = '[^]+';
}

@@ -80,0 +76,0 @@ } else {

@@ -40,9 +40,9 @@ 'use strict';

*
* For nodejs <= 4.0 core-js polyfills are required.
* For nodejs < v5.0 core-js polyfills are required.
* Use `npm i -S core-js` in your project and add:
*
* ```js
* // for node <= 0.10
* // for node < v0.11
* require('core-js/es6/object')
* // for node <= 4.0
* // for node < v5.0
* require('core-js/es6/string')

@@ -49,0 +49,0 @@ * require('core-js/es6/symbol')

{
"name": "named-regexp-groups",
"version": "1.0.0",
"version": "1.0.1",
"description": "Regular expressions with named capture groups and named back-references",

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

@@ -40,9 +40,9 @@ # named-regexp-groups

For nodejs <= 4.0 `core-js` polyfills are required.
For nodejs < v5.0 `core-js` polyfills are required.
Use `npm i -S core-js` in your project and add:
```js
// for node <= 0.10
// for node < v0.11
require('core-js/es6/object')
// for node <= 4.0
// for node < v5.0
require('core-js/es6/string')

@@ -49,0 +49,0 @@ require('core-js/es6/symbol')

@@ -46,3 +46,3 @@ /*!

case ')':
block = store.groups.pop() || ''
block = store.groups.pop()
name = store.names.pop()

@@ -69,9 +69,5 @@ /* istanbul ignore else */

}
s = ''
if (arr[i + 1] === ')') {
if (name[2]) {
s = name[2]
} else {
s = '[^]+'
}
s = name[2] || ''
if (arr[i + 1] === ')' && !name[2]) {
s = '[^]+'
}

@@ -78,0 +74,0 @@ } else {

@@ -24,9 +24,9 @@ /*!

*
* For nodejs <= 4.0 core-js polyfills are required.
* For nodejs < v5.0 core-js polyfills are required.
* Use `npm i -S core-js` in your project and add:
*
* ```js
* // for node <= 0.10
* // for node < v0.11
* require('core-js/es6/object')
* // for node <= 4.0
* // for node < v5.0
* require('core-js/es6/string')

@@ -33,0 +33,0 @@ * require('core-js/es6/symbol')

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