fix(kit): match commit hashes of other lengths (#19450)

This commit is contained in:
Daniel Roe 2023-03-04 15:10:40 +00:00 committed by GitHub
parent 71225e50c5
commit b73ca91437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ export async function checkNuxtCompatibility (constraints: NuxtCompatibility, nu
if (constraints.nuxt) {
const nuxtVersion = getNuxtVersion(nuxt)
const nuxtSemanticVersion = nuxtVersion
.replace(/-[0-9]+\.[0-9a-f]{7,8}/, '') // Remove edge prefix
.replace(/-[0-9]+\.[0-9a-f]+/, '') // Remove edge prefix
if (!satisfies(nuxtSemanticVersion, constraints.nuxt, { includePrerelease: true })) {
issues.push({
name: 'nuxt',