From 61deceb849037caf65e4abf7bb06d35dc3a5d752 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 6 Jun 2023 23:55:07 -0400 Subject: [PATCH] fix(striker-ui-api): avoid single quotes in access interact --- striker-ui-api/src/lib/accessModule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui-api/src/lib/accessModule.ts b/striker-ui-api/src/lib/accessModule.ts index 27f71f14..3523ef54 100644 --- a/striker-ui-api/src/lib/accessModule.ts +++ b/striker-ui-api/src/lib/accessModule.ts @@ -153,7 +153,7 @@ const subroutine = async ( result = String(p); } - return `'${result}'`; + return `"${result.replaceAll('"', '\\"')}"`; }); const { sub_results: results } = await access.interact<{ sub_results: T }>(