regexp-tree
Advanced tools
Comparing version 0.0.76 to 0.0.77
{ | ||
"name": "regexp-tree", | ||
"version": "0.0.76", | ||
"version": "0.0.77", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Regular Expressions parser in JavaScript", |
@@ -698,7 +698,7 @@ # regexp-tree | ||
- [Lookahead assertions](#lookahead-assertions) | ||
- [Positive lookahead assertions](#positive-lookahead-assertions) | ||
- [Negative lookahead assertions](#negative-lookahead-assertions) | ||
- [Positive lookahead assertion](#positive-lookahead-assertion) | ||
- [Negative lookahead assertion](#negative-lookahead-assertion) | ||
- [Lookbehind assertions](#lookbehind-assertions) | ||
- [Positive lookbehind assertions](#positive-lookbehind-assertions) | ||
- [Negative lookbehind assertions](#negative-lookbehind-assertions) | ||
- [Positive lookbehind assertion](#positive-lookbehind-assertion) | ||
- [Negative lookbehind assertion](#negative-lookbehind-assertion) | ||
@@ -705,0 +705,0 @@ #### Char |
@@ -10,2 +10,17 @@ /** | ||
/** | ||
* Original parse function. | ||
*/ | ||
const generatedParseFn = regexpTreeParser.parse.bind(regexpTreeParser); | ||
/** | ||
* Parses a regular expression. | ||
* | ||
* Override original `regexpTreeParser.parse` to convert a value to a string, | ||
* since in regexp-tree we may pass strings, and RegExp instance. | ||
*/ | ||
regexpTreeParser.parse = function(regexp, options) { | ||
return generatedParseFn(`${regexp}`, options); | ||
}; | ||
// By default do not capture locations; callers may override. | ||
@@ -12,0 +27,0 @@ regexpTreeParser.setOptions({captureLocations: false}); |
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
376395
10096