You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Interpolation into the expression is supported, so long as the interpolated valu
39
39
40
40
- Inline string, regexp, or number literals.
41
41
- Inline regexes constructed via `RegExp` or `new RegExp` with string values.
42
-
- Inline patterns, via `` pattern`…` `` as a template tag (without interpolation) or `pattern(…)` as a funcion call with a string or number literal as the value.
42
+
- Inline patterns, via `` pattern`…` `` as a template tag (without interpolation) or `pattern(…)` as a function call with a string or number literal as the value.
43
43
44
44
Additional details:
45
45
@@ -58,7 +58,7 @@ The following options are available when running the Babel plugin:
58
58
-**`removeImport`**— If `true`, removes any import declarations with module name `'regex'`.
59
59
-**`disableUnicodeSets`**— If `true`, adds `regex` option `disable: {v: true}` to all regexes before transformation.
60
60
-**`headerComment`**— If given a value, it will be added in a comment at the top of processed output/files.
61
-
-**`optimize`** (*experimental*) — If `true`, attempts to further optimize the regex source generated by `regex`.
61
+
-**`optimize`** (*experimental*) — If `true`, attempts to optimize/shorten the regex source generated by `regex`.
62
62
- Uses an external library ([regexp-tree](https://github.com/DmitrySoshnikov/regexp-tree)'s optimizer) that doesn't support flag-<kbd>v</kbd>-only syntax and isn't fully context-aware, so you should check the output.
0 commit comments