diff --git a/package.json b/package.json index d706eee..2ea4195 100644 --- a/package.json +++ b/package.json @@ -44,11 +44,11 @@ "dependencies": { "emoji-regex-xs": "^1.0.0", "regex": "^5.0.2", - "regex-recursion": "^4.3.0" + "regex-recursion": "^5.0.0" }, "devDependencies": { "esbuild": "^0.24.0", - "jasmine": "^5.4.0", + "jasmine": "^5.5.0", "typescript": "^5.7.2", "vscode-oniguruma": "^2.0.1" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f064ca8..db6939e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,15 +15,15 @@ importers: specifier: ^5.0.2 version: 5.0.2 regex-recursion: - specifier: ^4.3.0 - version: 4.3.0 + specifier: ^5.0.0 + version: 5.0.0 devDependencies: esbuild: specifier: ^0.24.0 version: 0.24.0 jasmine: - specifier: ^5.4.0 - version: 5.4.0 + specifier: ^5.5.0 + version: 5.5.0 typescript: specifier: ^5.7.2 version: 5.7.2 @@ -253,11 +253,11 @@ packages: jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} - jasmine-core@5.4.0: - resolution: {integrity: sha512-T4fio3W++llLd7LGSGsioriDHgWyhoL6YTu4k37uwJLF7DzOzspz7mNxRoM3cQdLWtL/ebazQpIf/yZGJx/gzg==} + jasmine-core@5.5.0: + resolution: {integrity: sha512-NHOvoPO6o9gVR6pwqEACTEpbgcH+JJ6QDypyymGbSUIFIFsMMbBJ/xsFNud8MSClfnWclXd7RQlAZBz7yVo5TQ==} - jasmine@5.4.0: - resolution: {integrity: sha512-E2u4ylX5tgGYvbynImU6EUBKKrSVB1L72FEPjGh4M55ov1VsxR26RA2JU91L9YSPFgcjo4mCLyKn/QXvEYGBkA==} + jasmine@5.5.0: + resolution: {integrity: sha512-JKlEVCVD5QBPYLsg/VE+IUtjyseDCrW8rMBu8la+9ysYashDgavMLM9Kotls1FhI6dCJLJ40dBCIfQjGLPZI1Q==} hasBin: true lru-cache@10.4.3: @@ -282,8 +282,8 @@ packages: resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} engines: {node: '>=16 || 14 >=14.18'} - regex-recursion@4.3.0: - resolution: {integrity: sha512-5LcLnizwjcQ2ALfOj95MjcatxyqF5RPySx9yT+PaXu3Gox2vyAtLDjHB8NTJLtMGkvyau6nI3CfpwFCjPUIs/A==} + regex-recursion@5.0.0: + resolution: {integrity: sha512-UwyOqeobrCCqTXPcsSqH4gDhOjD5cI/b8kjngWgSZbxYh5yVjAwTjO5+hAuPRNiuR70+5RlWSs+U9PVcVcW9Lw==} regex-utilities@2.3.0: resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==} @@ -513,12 +513,12 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 - jasmine-core@5.4.0: {} + jasmine-core@5.5.0: {} - jasmine@5.4.0: + jasmine@5.5.0: dependencies: glob: 10.4.5 - jasmine-core: 5.4.0 + jasmine-core: 5.5.0 lru-cache@10.4.3: {} @@ -537,7 +537,7 @@ snapshots: lru-cache: 10.4.3 minipass: 7.1.2 - regex-recursion@4.3.0: + regex-recursion@5.0.0: dependencies: regex-utilities: 2.3.0 diff --git a/src/transform.js b/src/transform.js index ffeea14..e248520 100644 --- a/src/transform.js +++ b/src/transform.js @@ -798,11 +798,7 @@ function isValidGroupNameJs(name) { // Returns a single node, either the given node or all nodes wrapped in a noncapturing group function parseFragment(pattern, options) { - const opts = { - skipPropertyNameValidation: false, - ...options, - }; - const ast = parse(tokenize(pattern), opts); + const ast = parse(tokenize(pattern), options); const alts = ast.pattern.alternatives; if (alts.length > 1 || alts[0].elements.length > 1) { return adoptAndSwapKids(createGroup(), alts);