Skip to content

Commit

Permalink
fix: remove invalid chars in getFileName
Browse files Browse the repository at this point in the history
  • Loading branch information
eri24816 committed Jun 26, 2024
1 parent f135d4e commit d3ffa09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ export function getFileName(title: string, page_id: string, extension: string='m

return title.replaceAll(" ", "-").replace(/--+/g, "-") +
"-" +
page_id.replaceAll("-", "") + extension;
page_id.replaceAll("-", "").slice(0, 6) + extension;
}

0 comments on commit d3ffa09

Please sign in to comment.