[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,
|
collection,
|
||||||
}: Pick<ContentPaths, 'contentDir'> & { entry: URL; collection: string }): string {
|
}: Pick<ContentPaths, 'contentDir'> & { entry: URL; collection: string }): string {
|
||||||
const relativePath = getRelativeEntryPath(entry, collection, contentDir);
|
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;
|
return withoutFileExt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue