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.3.0 to 4.4.0

2

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

@@ -5,0 +5,0 @@ "homepage": "https://mths.be/regexpu",

@@ -89,9 +89,9 @@ # 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`)
#### `lookbehind` (default: `false`)
Setting this option to `true` enables experimental support for [look behind](https://github.com/tc39/proposal-regexp-lookbehind).
Setting this option to `true` enables experimental support for [lookbehind assertions](https://github.com/tc39/proposal-regexp-lookbehind).
```js
rewritePattern('(?<=.)a', '', {
'lookBehind': true
'lookbehind': true
});

@@ -98,0 +98,0 @@ // → '(?<=[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uFFFF])a'

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

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

@@ -311,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