Comparing version
{ | ||
"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
1211474
0.05%130
0.78%1851
0.98%396
0.25%