Comparing version 1.11.0 to 1.12.0
{ | ||
"name": "re2", | ||
"version": "1.11.0", | ||
"version": "1.12.0", | ||
"description": "Bindings for RE2: fast, safe alternative to backtracking regular expression engines.", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/uhop/node-re2", |
10
re2.js
'use strict'; | ||
var RE2 = require('./build/Release/re2.node'); | ||
const RE2 = require('./build/Release/re2'); | ||
if (typeof Symbol != 'undefined') { | ||
Symbol.match && | ||
(RE2.prototype[Symbol.match] = function(str) { | ||
(RE2.prototype[Symbol.match] = function (str) { | ||
return this.match(str); | ||
}); | ||
Symbol.search && | ||
(RE2.prototype[Symbol.search] = function(str) { | ||
(RE2.prototype[Symbol.search] = function (str) { | ||
return this.search(str); | ||
}); | ||
Symbol.replace && | ||
(RE2.prototype[Symbol.replace] = function(str, repl) { | ||
(RE2.prototype[Symbol.replace] = function (str, repl) { | ||
return this.replace(str, repl); | ||
}); | ||
Symbol.split && | ||
(RE2.prototype[Symbol.split] = function(str, limit) { | ||
(RE2.prototype[Symbol.split] = function (str, limit) { | ||
return this.split(str, limit); | ||
@@ -21,0 +21,0 @@ }); |
@@ -353,2 +353,3 @@ # node-re2 | ||
- 1.12.0 *Updated the way `re2` objects are constructed.* | ||
- 1.11.0 *Updated the way to initialize the extension (thx [BannerBomb](https://github.com/BannerBomb)).* | ||
@@ -355,0 +356,0 @@ - 1.10.5 *Bugfix for optional groups (thx [Josh Yudaken](https://github.com/qix)), the latest version of `re2`.* |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1211474
130
1400
396