Socket
Socket
Sign inDemoInstall

regexpu-core

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regexpu-core - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

6

package.json
{
"name": "regexpu-core",
"version": "4.2.0",
"version": "4.3.0",
"description": "regexpu’s core functionality (i.e. `rewritePattern(pattern, flag)`), capable of translating ES6 Unicode regular expressions to ES5.",

@@ -53,4 +53,4 @@ "homepage": "https://mths.be/regexpu",

"regenerate-unicode-properties": "^7.0.0",
"regjsgen": "^0.4.0",
"regjsparser": "^0.3.0",
"regjsgen": "^0.5.0",
"regjsparser": "^0.6.0",
"unicode-match-property-ecmascript": "^1.0.4",

@@ -57,0 +57,0 @@ "unicode-match-property-value-ecmascript": "^1.0.2"

@@ -89,2 +89,13 @@ # regexpu-core [![Build status](https://travis-ci.org/mathiasbynens/regexpu-core.svg?branch=master)](https://travis-ci.org/mathiasbynens/regexpu-core) [![Code coverage status](https://img.shields.io/codecov/c/github/mathiasbynens/regexpu-core.svg)](https://codecov.io/gh/mathiasbynens/regexpu-core)

#### `lookBehind` (default: `false`)
Setting this option to `true` enables experimental support for [look behind](https://github.com/tc39/proposal-regexp-lookbehind).
```js
rewritePattern('(?<=.)a', '', {
'lookBehind': true
});
// → '(?<=[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uFFFF])a'
```
#### `namedGroup` (default: `false`)

@@ -91,0 +102,0 @@

@@ -307,3 +307,4 @@ 'use strict';

'unicodePropertyEscape': options && options.unicodePropertyEscape,
'namedGroups': options && options.namedGroup
'namedGroups': options && options.namedGroup,
'lookbehind': options && options.lookBehind
};

@@ -310,0 +311,0 @@ config.ignoreCase = flags && flags.includes('i');

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