diff options
author | 2023-08-18 19:45:55 +0000 | |
---|---|---|
committer | 2023-08-18 19:45:55 +0000 | |
commit | be2d60285e43f0629974ff86de037190c586d265 (patch) | |
tree | 67a9185c0eab9ea8ee6b56904f3c34bbce5a44a4 | |
parent | 04caa99c48ce604ca3b90302ff0df8dcdbeee650 (diff) | |
download | astro-be2d60285e43f0629974ff86de037190c586d265.tar.gz astro-be2d60285e43f0629974ff86de037190c586d265.tar.zst astro-be2d60285e43f0629974ff86de037190c586d265.zip |
[ci] format
-rw-r--r-- | packages/astro/src/content/utils.ts | 5 |
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; } |