regexpu-core
Advanced tools
Comparing version 4.2.0 to 4.3.0
{ | ||
"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'); |
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
37338
1308
147
1
+ Addedregjsgen@0.5.2(transitive)
+ Addedregjsparser@0.6.9(transitive)
- Removedregjsgen@0.4.0(transitive)
- Removedregjsparser@0.3.0(transitive)
Updatedregjsgen@^0.5.0
Updatedregjsparser@^0.6.0