Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

regexp-tree

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regexp-tree - npm Package Compare versions

Comparing version 0.0.76 to 0.0.77

2

package.json
{
"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});

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