Skip to content

Commit

Permalink
make node.js 6 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Sep 21, 2023
1 parent 6cb420e commit 8501e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rewrite-pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ const processCharacterClass = (
if (transformed) {
// If single chars already contains some astral character, regenerate (bmpOnly: true) will create valid regex strings
const bmpOnly = regenerateContainsAstral(singleChars);
const setStr = singleChars.toString({ ...regenerateOptions, bmpOnly: bmpOnly });
const setStr = singleChars.toString(Object.assign({}, regenerateOptions, { bmpOnly: bmpOnly }));

if (negative) {
if (config.useUnicodeFlag) {
Expand Down

0 comments on commit 8501e5d

Please sign in to comment.