Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Commit b97cc27

Browse files
authored
fix(kit, nuxi): semver regexp to support nuxt-edge current releases (bridge) (#7193)
1 parent de62520 commit b97cc27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/kit/src/compatibility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function checkNuxtCompatibility (constraints: NuxtCompatibility, nu
1212
if (constraints.nuxt) {
1313
const nuxtVersion = getNuxtVersion(nuxt)
1414
const nuxtSemanticVersion = nuxtVersion
15-
.replace(/-[0-9]+\.[0-9a-f]{7}/, '') // Remove edge prefix
15+
.replace(/-[0-9]+\.[0-9a-f]{7,8}/, '') // Remove edge prefix
1616
if (!satisfies(nuxtSemanticVersion, constraints.nuxt, { includePrerelease: true })) {
1717
issues.push({
1818
name: 'nuxt',

packages/nuxi/src/utils/nuxt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function cleanupNuxtDirs (rootDir: string) {
2929

3030
export function nuxtVersionToGitIdentifier (version: string) {
3131
// match the git identifier in the release, for example: 3.0.0-rc.8-27677607.a3a8706
32-
const id = /\.([0-9a-f]{7})$/.exec(version)
32+
const id = /\.([0-9a-f]{7,8})$/.exec(version)
3333
if (id?.[1]) {
3434
return id[1]
3535
}

0 commit comments

Comments
 (0)