summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-08-18 19:45:55 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-08-18 19:45:55 +0000
commitbe2d60285e43f0629974ff86de037190c586d265 (patch)
tree67a9185c0eab9ea8ee6b56904f3c34bbce5a44a4
parent04caa99c48ce604ca3b90302ff0df8dcdbeee650 (diff)
downloadastro-be2d60285e43f0629974ff86de037190c586d265.tar.gz
astro-be2d60285e43f0629974ff86de037190c586d265.tar.zst
astro-be2d60285e43f0629974ff86de037190c586d265.zip
[ci] format
-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;
}