summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/content/utils.ts5
1 files changed, 4 insertions, 1 deletions
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<ContentPaths, 'contentDir'> & { 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;
}