diff --git a/packages/astro/src/content/utils.ts b/packages/astro/src/content/utils.ts index 23a305426..d02bd8669 100644 --- a/packages/astro/src/content/utils.ts +++ b/packages/astro/src/content/utils.ts @@ -209,7 +209,10 @@ export function getDataEntryId({ collection, }: Pick & { entry: URL; collection: string }): string { const relativePath = getRelativeEntryPath(entry, collection, contentDir); - const withoutFileExt = normalizePath(relativePath).replace(new RegExp(path.extname(relativePath) + '$'), ''); + const withoutFileExt = normalizePath(relativePath).replace( + new RegExp(path.extname(relativePath) + '$'), + '' + ); return withoutFileExt; }