fix getFileExtension missing numeric extensions (e.g. mp4)

This commit is contained in:
Jacky Zhao
2023-08-08 21:31:36 -07:00
parent e21f0f9bb9
commit e4950e06a1
3 changed files with 3 additions and 4 deletions

View File

@ -145,6 +145,7 @@ describe("transforms", () => {
["/content/index.md", "content/index"],
["content/cool.png", "content/cool"],
["index.md", "index"],
["test.mp4", "test"],
["note with spaces.md", "note-with-spaces"],
],
path.slugifyFilePath,