Skip to content

Commit

Permalink
materialize the unicodeSetsFlag_syntax feature
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed May 18, 2023
1 parent 1d633e2 commit 8d2e895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -3,6 +3,7 @@ export const FEATURES = Object.freeze({
dotAllFlag: 1 << 1,
unicodePropertyEscape: 1 << 2,
namedCaptureGroups: 1 << 3,
// Babel 8.1: remove unicodeSetsFlag_syntax
unicodeSetsFlag_syntax: 1 << 4,
unicodeSetsFlag: 1 << 5,
duplicateNamedCaptureGroups: 1 << 6,
Expand Down
Expand Up @@ -33,9 +33,7 @@ export function generateRegexpuOptions(

return {
unicodeFlag: feat("unicodeFlag"),
unicodeSetsFlag:
feat<Experimental>("unicodeSetsFlag") ||
feat<Experimental>("unicodeSetsFlag_syntax", "parse"),
unicodeSetsFlag: feat<Experimental>("unicodeSetsFlag") || "parse",
dotAllFlag: feat("dotAllFlag"),
unicodePropertyEscapes: feat("unicodePropertyEscape"),
namedGroups: feat("namedCaptureGroups") || featDuplicateNamedGroups(),
Expand Down

0 comments on commit 8d2e895

Please sign in to comment.