Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Nov 17, 2024
1 parent a595f61 commit aa18e2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Using a high limit has a small impact on performance. Generally, this is only a

One of `'auto'` *(default)*, `'ES2025'`, `'ES2024'`, or `'ES2018'`.

JavaScript version support needed for generated regexes. `auto` sets the value based on your environment. Later targets allow faster processing, simpler generated source, and support for additional features.
JavaScript version used for generated regexes. Using `auto` detects the best value based on your environment. Later targets allow faster processing, simpler generated source, and support for additional features.

<details>
<summary>More details</summary>
Expand Down
6 changes: 3 additions & 3 deletions src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function getOptions(options) {
// Specifies the recursion depth limit. Supported values are integers `2`–`100` and `null`. If
// `null`, any use of recursion results in an error.
maxRecursionDepth: 5,
// JavaScript version support needed for generated regexes. `auto` sets the value based on your
// environment. Later targets allow faster processing, simpler generated source, and support
// for additional features.
// JavaScript version used for generated regexes. Using `auto` detects the best value based on
// your environment. Later targets allow faster processing, simpler generated source, and
// support for additional features.
target: 'auto',
// Leave disabled unless the regex will be used in a TextMate grammar processor that merges
// backreferences across `begin` and `end` patterns.
Expand Down
2 changes: 1 addition & 1 deletion src/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {applySubclassStrategies, isLoneGLookaround, isZeroLengthNode} from './su
import {tokenize} from './tokenize.js';
import {traverse} from './traverse.js';
import {JsUnicodeProperties, PosixClassesMap} from './unicode.js';
import {cp, getNewCurrentFlags, getOrCreate, hasOnlyChild, isMinTarget, r} from './utils.js';
import {cp, getNewCurrentFlags, getOrCreate, isMinTarget, r} from './utils.js';
import emojiRegex from 'emoji-regex-xs';

/**
Expand Down

0 comments on commit aa18e2a

Please sign in to comment.