From 17be8f3601bc362659f59d293c1a7b85f15e6e15 Mon Sep 17 00:00:00 2001 From: Jason Fu Date: Wed, 9 Jul 2025 02:37:03 +0200 Subject: [PATCH] handle no slashes case --- src/converters/libreoffice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converters/libreoffice.ts b/src/converters/libreoffice.ts index 6e1e0b5..bc629ac 100644 --- a/src/converters/libreoffice.ts +++ b/src/converters/libreoffice.ts @@ -139,7 +139,7 @@ export function convert( // eslint-disable-next-line @typescript-eslint/no-unused-vars options?: unknown, ): Promise { - const outputPath = targetPath.split("/").slice(0, -1).join("/").replace("./", ""); + const outputPath = targetPath.split("/").slice(0, -1).join("/").replace("./", "") ?? targetPath; // Build arguments array const args: string[] = [];