fix(striker-ui-api): avoid single quotes in access interact

main
Tsu-ba-me 2 years ago
parent 710f076d04
commit 61deceb849
  1. 2
      striker-ui-api/src/lib/accessModule.ts

@ -153,7 +153,7 @@ const subroutine = async <T extends unknown[]>(
result = String(p);
}
return `'${result}'`;
return `"${result.replaceAll('"', '\\"')}"`;
});
const { sub_results: results } = await access.interact<{ sub_results: T }>(

Loading…
Cancel
Save