[ci] format

This commit is contained in:
matthewp 2023-08-18 19:45:55 +00:00 committed by astrobot-houston
parent 04caa99c48
commit be2d60285e

View file

@ -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;
}