From fb20582b4baed53413fa685f9fa045eb45cb9a66 Mon Sep 17 00:00:00 2001 From: Lewis McClelland Date: Fri, 18 Jul 2025 23:17:19 -0700 Subject: [PATCH] fix: properly escape "%" in procCode --- blocks_vertical/procedures.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks_vertical/procedures.js b/blocks_vertical/procedures.js index 1d2d2153a6..a30427b435 100644 --- a/blocks_vertical/procedures.js +++ b/blocks_vertical/procedures.js @@ -572,7 +572,7 @@ Blockly.ScratchBlocks.ProcedureUtils.updateDeclarationProcCode_ = function() { } var input = this.inputList[i]; if (input.type == Blockly.DUMMY_INPUT) { - this.procCode_ += input.fieldRow[0].getValue(); + this.procCode_ += input.fieldRow[0].getValue().replaceAll('%', '\\%'); } else if (input.type == Blockly.INPUT_VALUE) { // Inspect the argument editor. var target = input.connection.targetBlock();