regexpu-core
Advanced tools
Comparing version 4.3.0 to 4.4.0
{ | ||
"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'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37348