Skip to content

Commit 24ee741

Browse files
committed
New version: 1.22.1.
1 parent fb510b2 commit 24ee741

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,12 +355,14 @@ console.log('re2_res : ' + re2_res); // prints: re2_res : abc,a,b,c
355355

356356
`RE2` supports a subset of Unicode classes as defined in [RE2 Syntax](https://github.com/google/re2/wiki/Syntax). Native Google RE2 supports only short names, e.g., `L` for `Letter`, `N` for `Number`, etc. Like `RegExp`, `RE2` supports both short and long names, e.g., `Letter` for `L`, by translating them to short names.
357357

358-
The extended form `\p{name=value}` is not supported. Only form `\p{name}` is supported.
358+
Generally, the extended form `\p{name=value}` is not supported. Only form `\p{name}` is supported.
359+
The exception is `Script` and `sc` names, e.g., `\p{Script=Latin}` and `\p{sc=Cyrillic}`.
359360

360-
The same applies to `\P{name}`.
361+
The same applies to `\P{...}`.
361362

362363
## Release history
363364

365+
- 1.22.1 *Added support for translation of scripts as Unicode classes.*
364366
- 1.22.0 *Added support for translation of Unicode classes (thx, [John Livingston](https://github.com/JohnXLivingston)). Added [attestations](https://github.com/uhop/node-re2/attestations).*
365367
- 1.21.5 *Updated all dependencies and the list of pre-compiled targets. Fixed minor bugs. C++ style fix (thx, [Benjamin Brienen](https://github.com/BenjaminBrienen)). Added Windows 11 ARM build runner (thx, [Kagami Sascha Rosylight](https://github.com/saschanaz)).*
366368
- 1.21.4 *Fixed a regression reported by [caroline-matsec](https://github.com/caroline-matsec), thx! Added pre-compilation targets for Alpine Linux on ARM. Updated deps.*

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "re2",
3-
"version": "1.22.0",
3+
"version": "1.22.1",
44
"description": "Bindings for RE2: fast, safe alternative to backtracking regular expression engines.",
55
"homepage": "https://github.com/uhop/node-re2",
66
"bugs": "https://github.com/uhop/node-re2/issues",

0 commit comments

Comments
 (0)