From 3dd2f0995bc2ef28d5a5b5a62d76d8150154bf77 Mon Sep 17 00:00:00 2001 From: marcobaobao Date: Mon, 3 Feb 2025 10:10:58 +0100 Subject: [PATCH] fixed postprocessor args --- frontend/src/lib/rpcClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/rpcClient.ts b/frontend/src/lib/rpcClient.ts index aedcd2a..d02478a 100644 --- a/frontend/src/lib/rpcClient.ts +++ b/frontend/src/lib/rpcClient.ts @@ -41,10 +41,10 @@ export class RPCClient { }) } - private argsSanitizer(args: string) { + private argsSanitizer(args: string): string[] { return args .split(' ') - .map(a => a.trim().replaceAll("'", '').replaceAll('"', '')) + .map(a => a.trim().replaceAll('"', '')) .filter(Boolean) }