mirror of
https://github.com/C4illin/ConvertX.git
synced 2026-11-12 17:20:54 +01:00
handle no slashes case
This commit is contained in:
1 parent
9d5050d3ee
commit
17be8f3601
1 file changed
+1
-1
@@ -139,7 +139,7 @@ export function convert(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
options?: unknown,
|
||||
): Promise<string> {
|
||||
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[] = [];
|
||||
|
||||
Reference in new issue
Block a user