mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-05-26 12:55:16 -07:00
5 lines
168 B
TypeScript
5 lines
168 B
TypeScript
export function formatStatusLineFilePath(routePath: string): string {
|
|
if (routePath === '/') return 'index.md';
|
|
return `${routePath.replace(/^\/|\/$/g, '')}.md`;
|
|
}
|