Skip to content

Commit 4a9cd8a

Browse files
authored
feat: bump Oniguruma-To-ES dep to support more grammars and simplify (#836)
1 parent 1a687ad commit 4a9cd8a

File tree

6 files changed

+75
-116
lines changed

6 files changed

+75
-116
lines changed

docs/guide/regex-engines.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ The JavaScript engine is best when running in the browser and in cases when you
7777

7878
### JavaScript Runtime Target
7979

80-
For the most accurate result, [Oniguruma-To-ES](https://github.com/slevithan/oniguruma-to-es) requires the [RegExp `v` flag support](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets), which is available in Node.js v20+ and ES2024 ([Browser compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets#browser_compatibility)).
80+
For the best result, [Oniguruma-To-ES](https://github.com/slevithan/oniguruma-to-es) uses the [RegExp `v` flag](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets), which is available in Node.js v20+ and ES2024 ([Browser compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets#browser_compatibility)).
8181

82-
For older environments, it can simulate the behavior but `u` flag but might yield less accurate results.
82+
For older environments, it can use the `u` flag but somewhat fewer grammars are supported.
8383

84-
By default, it automatically detects the runtime target and uses the appropriate behavior. You can override this behavior by setting the `target` option:
84+
By default, the runtime target is automatically detected. You can override this behavior by setting the `target` option:
8585

8686
```ts
8787
const jsEngine = createJavaScriptRegexEngine({

0 commit comments

Comments
 (0)