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

xregexp-quotemeta

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xregexp-quotemeta - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

package.json
{
"name": "xregexp-quotemeta",
"version": "1.0.1",
"version": "1.0.2",
"description": "\\Q..\\E (quotemeta) support for XRegExp",

@@ -23,3 +23,5 @@ "homepage": "https://github.com/mintern/xregexp-quotemeta",

],
"files": ["xregexp-quotemeta.js"],
"files": [
"xregexp-quotemeta.js"
],
"main": "xregexp-quotemeta.js",

@@ -34,2 +36,3 @@ "scripts": {

"babel-cli": "^6.9.0",
"babel-plugin-transform-es2015-arrow-functions": "^6.8.0",
"babel-plugin-transform-es2015-modules-umd": "^6.8.0",

@@ -36,0 +39,0 @@ "xregexp": "^3.1.1"

@@ -34,3 +34,5 @@ (function (global, factory) {

// See https://github.com/slevithan/xregexp/issues/85#issuecomment-108592346
XRegExp.addToken(/\\Q([\s\S]*?)(?:\\E|$)/, match => XRegExp.escape(match[1]), {
XRegExp.addToken(/\\Q([\s\S]*?)(?:\\E|$)/, function (match) {
return XRegExp.escape(match[1]);
}, {
scope: 'all',

@@ -37,0 +39,0 @@ leadChar: '\\'

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