[ci] format
This commit is contained in:
parent
04caa99c48
commit
be2d60285e
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue