fix(appsync): reject regex literals without misreading division (#7343)

This commit is contained in:
Jimmy Liu Jia authored and GitHub committed 2026-11-02 21:01:48 -04:00
1 parent b63e4a5bb9
commit 56efb188b1
5 files changed
+678 -59

No files matched your search

@@ -237,7 +237,7 @@ public class NodeAppSyncJsRuntime implements AppSyncJsRuntime, ContainerTeardown
* rather than quoted into the shell: it contains the quotes, backticks and newlines of the
* {@code @aws-appsync/utils} shim it writes, none of which survive shell interpolation.
*/
private String startCommand() {
String startCommand() {
String encoded = Base64.getEncoder().encodeToString(serverScript().getBytes(StandardCharsets.UTF_8));
return "echo " + encoded + " | base64 -d > " + SERVER_PATH + " && exec node " + SERVER_PATH;
}