refactor: change parsePathForTitle to a non-exported function

This commit is contained in:
Prateek Singh 2025-10-15 23:50:21 +05:30
parent 15818b9cad
commit 3f0ead4821

View file

@ -15,7 +15,7 @@ import { Metadata } from "next";
* @param path The array of path segments from Next.js params. * @param path The array of path segments from Next.js params.
* @returns A formatted title string. * @returns A formatted title string.
*/ */
export const parsePathForTitle = (path: string[]): string => { const parsePathForTitle = (path: string[]): string => {
const pathParam = path.join('/'); const pathParam = path.join('/');
const { repoName, revisionName, path: filePath, pathType } = getBrowseParamsFromPathParam(pathParam); const { repoName, revisionName, path: filePath, pathType } = getBrowseParamsFromPathParam(pathParam);