xregexp-quotemeta
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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: '\\' |
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
4563
39
5