@nxtedition/rocksdb 11.1.1 → 11.1.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/binding.cc +1 -1
- package/package.json +1 -1
package/binding.cc
CHANGED
|
@@ -1487,7 +1487,7 @@ NAPI_METHOD(regex_init) {
|
|
|
1487
1487
|
std::string pattern;
|
|
1488
1488
|
NAPI_STATUS_THROWS(GetString(env, argv[0], pattern));
|
|
1489
1489
|
|
|
1490
|
-
auto batch = std::make_unique<std::regex>(pattern);
|
|
1490
|
+
auto batch = std::make_unique<std::regex>(pattern, std::regex::optimize | std::regex::ECMAScript);
|
|
1491
1491
|
|
|
1492
1492
|
napi_value result;
|
|
1493
1493
|
NAPI_STATUS_THROWS(napi_create_external(env, batch.get(), Finalize<std::regex>, batch.get(), &result));
|