re2 1.17.1 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -13,6 +13,10 @@ at his [Implementing Regular Expressions](http://swtch.com/~rsc/regexp/) page.
|
|
|
13
13
|
(see [Syntax](https://github.com/google/re2/wiki/Syntax)),
|
|
14
14
|
but it lacks two features: backreferences and lookahead assertions. See below for more details.
|
|
15
15
|
|
|
16
|
+
`RE2` always works in the [Unicode mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode), which means that all matches that use character codes are interpret as Unicode code points, not as binary values of UTF-16.
|
|
17
|
+
See `RE2.unicodeWarningLevel` below for more details.
|
|
18
|
+
|
|
19
|
+
|
|
16
20
|
`RE2` object emulates standard `RegExp` making it a practical drop-in replacement in most cases.
|
|
17
21
|
`RE2` is extended to provide `String`-based regular expression methods as well. To help to convert
|
|
18
22
|
`RegExp` objects to `RE2` its constructor can take `RegExp` directly honoring all properties.
|
|
@@ -343,6 +347,7 @@ console.log('re2_res : ' + re2_res); // prints: re2_res : abc,a,b,c
|
|
|
343
347
|
|
|
344
348
|
## Release history
|
|
345
349
|
|
|
350
|
+
- 1.17.2 *Added support for the enhanced local mirroring by updating [install-artifact-from-github](https://github.com/uhop/install-artifact-from-github).*
|
|
346
351
|
- 1.17.1 *Fix for `lastIndex` for U+10000 - U+10FFFF UTF characters. Thx, [omg](https://github.com/omg).*
|
|
347
352
|
- 1.17.0 *Updated GYP, added support for Node 17, updated deps.*
|
|
348
353
|
- 1.16.0 *Updated the compiler (thx, [Sergei Dyshel](https://github.com/sergei-dyshel)), updated GYP, removed support for Node 10, added support for Node 16, updated TS bindings (thx, [BannerBomb](https://github.com/BannerBomb)).*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "re2",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.2",
|
|
4
4
|
"description": "Bindings for RE2: fast, safe alternative to backtracking regular expression engines.",
|
|
5
5
|
"homepage": "https://github.com/uhop/node-re2",
|
|
6
6
|
"bugs": "https://github.com/uhop/node-re2/issues",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"test": "tests"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"install-artifact-from-github": "^1.
|
|
13
|
+
"install-artifact-from-github": "^1.3.0",
|
|
14
14
|
"nan": "^2.15.0",
|
|
15
15
|
"node-gyp": "^8.4.1"
|
|
16
16
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"test": "node tests/tests.js",
|
|
22
22
|
"save-to-github": "save-to-github-cache --artifact build/Release/re2.node",
|
|
23
|
-
"install": "install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR || npm run rebuild",
|
|
23
|
+
"install": "install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR --skip-path-var RE2_DOWNLOAD_SKIP_PATH --skip-ver-var RE2_DOWNLOAD_SKIP_VER || npm run rebuild",
|
|
24
24
|
"verify-build": "node scripts/verify-build.js",
|
|
25
25
|
"rebuild": "node-gyp rebuild"
|
|
26
26
|
},
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"text processing",
|
|
36
36
|
"PCRE alternative"
|
|
37
37
|
],
|
|
38
|
-
"author": "Eugene Lazutkin <eugene.lazutkin@gmail.com> (
|
|
38
|
+
"author": "Eugene Lazutkin <eugene.lazutkin@gmail.com> (https://lazutkin.com/)",
|
|
39
39
|
"license": "BSD-3-Clause"
|
|
40
40
|
}
|